Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
E
EmidWife-New
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
2023-24-005
EmidWife-New
Commits
94ea193e
Commit
94ea193e
authored
May 19, 2024
by
Malsha Jayakody
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add scroll views
parent
248bc388
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
373 additions
and
330 deletions
+373
-330
src/screens/home/game/game01/GameLevel04.js
src/screens/home/game/game01/GameLevel04.js
+98
-88
src/screens/home/game/game01/GameLevel3.js
src/screens/home/game/game01/GameLevel3.js
+81
-70
src/screens/home/game/game01/GameLevel5.js
src/screens/home/game/game01/GameLevel5.js
+86
-75
src/screens/home/game/game01/GameLevel6.js
src/screens/home/game/game01/GameLevel6.js
+108
-97
No files found.
src/screens/home/game/game01/GameLevel04.js
View file @
94ea193e
...
@@ -8,6 +8,7 @@ import {
...
@@ -8,6 +8,7 @@ import {
Alert
,
Alert
,
Button
,
Button
,
ImageBackground
,
ImageBackground
,
ScrollView
,
}
from
'
react-native
'
;
}
from
'
react-native
'
;
import
{
IMGS
,
ROUTES
,
COLORS
}
from
'
../../../../constants
'
;
import
{
IMGS
,
ROUTES
,
COLORS
}
from
'
../../../../constants
'
;
import
Sound
from
'
react-native-sound
'
;
import
Sound
from
'
react-native-sound
'
;
...
@@ -260,6 +261,9 @@ const CandyCrushGameLevel04 = ({navigation}) => {
...
@@ -260,6 +261,9 @@ const CandyCrushGameLevel04 = ({navigation}) => {
}
}
return
(
return
(
<
ScrollView
style
=
{
styles
.
scrollContainer
}
contentContainerStyle
=
{
styles
.
contentContainer
}
>
<
ImageBackground
<
ImageBackground
source
=
{
IMGS
.
game_img_7
}
source
=
{
IMGS
.
game_img_7
}
style
=
{
styles
.
backgroundImage
}
style
=
{
styles
.
backgroundImage
}
...
@@ -275,7 +279,6 @@ const CandyCrushGameLevel04 = ({navigation}) => {
...
@@ -275,7 +279,6 @@ const CandyCrushGameLevel04 = ({navigation}) => {
alignItems
:
'
center
'
,
alignItems
:
'
center
'
,
borderRadius
:
14
,
borderRadius
:
14
,
width
:
50
,
width
:
50
,
marginTop
:
10
,
}}
}}
onPress
=
{
toggleMute
}
>
onPress
=
{
toggleMute
}
>
<
Text
<
Text
...
@@ -329,7 +332,7 @@ const CandyCrushGameLevel04 = ({navigation}) => {
...
@@ -329,7 +332,7 @@ const CandyCrushGameLevel04 = ({navigation}) => {
style
=
{{
style
=
{{
backgroundColor
:
'
#702963
'
,
backgroundColor
:
'
#702963
'
,
height
:
50
,
height
:
50
,
marginBottom
:
12
0
,
marginBottom
:
6
0
,
justifyContent
:
'
center
'
,
justifyContent
:
'
center
'
,
alignItems
:
'
center
'
,
alignItems
:
'
center
'
,
// marginHorizontal: 25,
// marginHorizontal: 25,
...
@@ -351,6 +354,7 @@ const CandyCrushGameLevel04 = ({navigation}) => {
...
@@ -351,6 +354,7 @@ const CandyCrushGameLevel04 = ({navigation}) => {
<
/TouchableOpacity
>
<
/TouchableOpacity
>
<
/View
>
<
/View
>
<
/ImageBackground
>
<
/ImageBackground
>
<
/ScrollView
>
);
);
};
};
...
@@ -389,6 +393,12 @@ const styles = StyleSheet.create({
...
@@ -389,6 +393,12 @@ const styles = StyleSheet.create({
candyText
:
{
candyText
:
{
fontSize
:
30
,
fontSize
:
30
,
},
},
scrollContainer
:
{
flexGrow
:
1
,
},
contentContainer
:
{
paddingBottom
:
40
,
// Adds padding at the bottom
},
});
});
export
default
CandyCrushGameLevel04
;
export
default
CandyCrushGameLevel04
;
src/screens/home/game/game01/GameLevel3.js
View file @
94ea193e
...
@@ -7,6 +7,7 @@ import {
...
@@ -7,6 +7,7 @@ import {
Alert
,
Alert
,
Button
,
Button
,
ImageBackground
,
ImageBackground
,
ScrollView
,
}
from
'
react-native
'
;
}
from
'
react-native
'
;
import
{
IMGS
,
ROUTES
,
COLORS
}
from
'
../../../../constants
'
;
import
{
IMGS
,
ROUTES
,
COLORS
}
from
'
../../../../constants
'
;
import
Sound
from
'
react-native-sound
'
;
import
Sound
from
'
react-native-sound
'
;
...
@@ -215,6 +216,9 @@ const CandyCrushGameLevel03 = ({navigation}) => {
...
@@ -215,6 +216,9 @@ const CandyCrushGameLevel03 = ({navigation}) => {
return
true
;
// Matches were found and cleared
return
true
;
// Matches were found and cleared
}
}
return
(
return
(
<
ScrollView
style
=
{
styles
.
scrollContainer
}
contentContainerStyle
=
{
styles
.
contentContainer
}
>
<
ImageBackground
<
ImageBackground
source
=
{
IMGS
.
game_img_8
}
source
=
{
IMGS
.
game_img_8
}
style
=
{
styles
.
backgroundImage
}
style
=
{
styles
.
backgroundImage
}
...
@@ -286,6 +290,7 @@ const CandyCrushGameLevel03 = ({navigation}) => {
...
@@ -286,6 +290,7 @@ const CandyCrushGameLevel03 = ({navigation}) => {
<
/TouchableOpacity
>
<
/TouchableOpacity
>
<
/View
>
<
/View
>
<
/ImageBackground
>
<
/ImageBackground
>
<
/ScrollView
>
);
);
};
};
...
@@ -323,6 +328,12 @@ const styles = StyleSheet.create({
...
@@ -323,6 +328,12 @@ const styles = StyleSheet.create({
candyText
:
{
candyText
:
{
fontSize
:
30
,
fontSize
:
30
,
},
},
scrollContainer
:
{
flexGrow
:
1
,
},
contentContainer
:
{
paddingBottom
:
40
,
// Adds padding at the bottom
},
});
});
export
default
CandyCrushGameLevel03
;
export
default
CandyCrushGameLevel03
;
src/screens/home/game/game01/GameLevel5.js
View file @
94ea193e
...
@@ -7,6 +7,7 @@ import {
...
@@ -7,6 +7,7 @@ import {
Image
,
Image
,
StyleSheet
,
StyleSheet
,
Alert
,
Alert
,
ScrollView
,
ImageBackground
,
ImageBackground
,
}
from
'
react-native
'
;
}
from
'
react-native
'
;
import
{
IMGS
,
COLORS
,
ROUTES
}
from
'
../../../../constants
'
;
import
{
IMGS
,
COLORS
,
ROUTES
}
from
'
../../../../constants
'
;
...
@@ -119,6 +120,9 @@ const GameLevel5 = ({navigation}) => {
...
@@ -119,6 +120,9 @@ const GameLevel5 = ({navigation}) => {
};
};
return
(
return
(
<
ScrollView
style
=
{
styles
.
scrollContainer
}
contentContainerStyle
=
{
styles
.
contentContainer
}
>
<
ImageBackground
<
ImageBackground
source
=
{
IMGS
.
game_img_9
}
source
=
{
IMGS
.
game_img_9
}
style
=
{
styles
.
backgroundImage
}
style
=
{
styles
.
backgroundImage
}
...
@@ -199,6 +203,7 @@ const GameLevel5 = ({navigation}) => {
...
@@ -199,6 +203,7 @@ const GameLevel5 = ({navigation}) => {
<
/View
>
<
/View
>
<
/View
>
<
/View
>
<
/ImageBackground
>
<
/ImageBackground
>
<
/ScrollView
>
);
);
};
};
...
@@ -308,6 +313,12 @@ const styles = StyleSheet.create({
...
@@ -308,6 +313,12 @@ const styles = StyleSheet.create({
height
:
100
,
height
:
100
,
borderRadius
:
30
,
borderRadius
:
30
,
},
},
scrollContainer
:
{
flexGrow
:
1
,
},
contentContainer
:
{
paddingBottom
:
40
,
// Adds padding at the bottom
},
});
});
export
default
GameLevel5
;
export
default
GameLevel5
;
src/screens/home/game/game01/GameLevel6.js
View file @
94ea193e
...
@@ -8,6 +8,7 @@ import {
...
@@ -8,6 +8,7 @@ import {
StyleSheet
,
StyleSheet
,
Alert
,
Alert
,
ImageBackground
,
ImageBackground
,
ScrollView
,
}
from
'
react-native
'
;
}
from
'
react-native
'
;
import
{
IMGS
,
ROUTES
,
COLORS
}
from
'
../../../../constants
'
;
import
{
IMGS
,
ROUTES
,
COLORS
}
from
'
../../../../constants
'
;
import
Sound
from
'
react-native-sound
'
;
import
Sound
from
'
react-native-sound
'
;
...
@@ -148,6 +149,9 @@ const GameLevel6 = () => {
...
@@ -148,6 +149,9 @@ const GameLevel6 = () => {
};
};
return
(
return
(
<
ScrollView
style
=
{
styles
.
scrollContainer
}
contentContainerStyle
=
{
styles
.
contentContainer
}
>
<
ImageBackground
<
ImageBackground
source
=
{
IMGS
.
game_img_15
}
source
=
{
IMGS
.
game_img_15
}
style
=
{
styles
.
backgroundImage
}
style
=
{
styles
.
backgroundImage
}
...
@@ -252,6 +256,7 @@ const GameLevel6 = () => {
...
@@ -252,6 +256,7 @@ const GameLevel6 = () => {
<
/View
>
<
/View
>
<
/View
>
<
/View
>
<
/ImageBackground
>
<
/ImageBackground
>
<
/ScrollView
>
);
);
};
};
...
@@ -359,6 +364,12 @@ const styles = StyleSheet.create({
...
@@ -359,6 +364,12 @@ const styles = StyleSheet.create({
shadowRadius
:
2
,
shadowRadius
:
2
,
elevation
:
5
,
elevation
:
5
,
},
},
scrollContainer
:
{
flexGrow
:
1
,
},
contentContainer
:
{
paddingBottom
:
40
,
// Adds padding at the bottom
},
});
});
export
default
GameLevel6
;
export
default
GameLevel6
;
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment