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 {
Alert
,
Button
,
ImageBackground
,
ScrollView
,
}
from
'
react-native
'
;
import
{
IMGS
,
ROUTES
,
COLORS
}
from
'
../../../../constants
'
;
import
Sound
from
'
react-native-sound
'
;
...
...
@@ -260,6 +261,9 @@ const CandyCrushGameLevel04 = ({navigation}) => {
}
return
(
<
ScrollView
style
=
{
styles
.
scrollContainer
}
contentContainerStyle
=
{
styles
.
contentContainer
}
>
<
ImageBackground
source
=
{
IMGS
.
game_img_7
}
style
=
{
styles
.
backgroundImage
}
...
...
@@ -275,7 +279,6 @@ const CandyCrushGameLevel04 = ({navigation}) => {
alignItems
:
'
center
'
,
borderRadius
:
14
,
width
:
50
,
marginTop
:
10
,
}}
onPress
=
{
toggleMute
}
>
<
Text
...
...
@@ -329,7 +332,7 @@ const CandyCrushGameLevel04 = ({navigation}) => {
style
=
{{
backgroundColor
:
'
#702963
'
,
height
:
50
,
marginBottom
:
12
0
,
marginBottom
:
6
0
,
justifyContent
:
'
center
'
,
alignItems
:
'
center
'
,
// marginHorizontal: 25,
...
...
@@ -351,6 +354,7 @@ const CandyCrushGameLevel04 = ({navigation}) => {
<
/TouchableOpacity
>
<
/View
>
<
/ImageBackground
>
<
/ScrollView
>
);
};
...
...
@@ -389,6 +393,12 @@ const styles = StyleSheet.create({
candyText
:
{
fontSize
:
30
,
},
scrollContainer
:
{
flexGrow
:
1
,
},
contentContainer
:
{
paddingBottom
:
40
,
// Adds padding at the bottom
},
});
export
default
CandyCrushGameLevel04
;
src/screens/home/game/game01/GameLevel3.js
View file @
94ea193e
...
...
@@ -7,6 +7,7 @@ import {
Alert
,
Button
,
ImageBackground
,
ScrollView
,
}
from
'
react-native
'
;
import
{
IMGS
,
ROUTES
,
COLORS
}
from
'
../../../../constants
'
;
import
Sound
from
'
react-native-sound
'
;
...
...
@@ -215,6 +216,9 @@ const CandyCrushGameLevel03 = ({navigation}) => {
return
true
;
// Matches were found and cleared
}
return
(
<
ScrollView
style
=
{
styles
.
scrollContainer
}
contentContainerStyle
=
{
styles
.
contentContainer
}
>
<
ImageBackground
source
=
{
IMGS
.
game_img_8
}
style
=
{
styles
.
backgroundImage
}
...
...
@@ -286,6 +290,7 @@ const CandyCrushGameLevel03 = ({navigation}) => {
<
/TouchableOpacity
>
<
/View
>
<
/ImageBackground
>
<
/ScrollView
>
);
};
...
...
@@ -323,6 +328,12 @@ const styles = StyleSheet.create({
candyText
:
{
fontSize
:
30
,
},
scrollContainer
:
{
flexGrow
:
1
,
},
contentContainer
:
{
paddingBottom
:
40
,
// Adds padding at the bottom
},
});
export
default
CandyCrushGameLevel03
;
src/screens/home/game/game01/GameLevel5.js
View file @
94ea193e
...
...
@@ -7,6 +7,7 @@ import {
Image
,
StyleSheet
,
Alert
,
ScrollView
,
ImageBackground
,
}
from
'
react-native
'
;
import
{
IMGS
,
COLORS
,
ROUTES
}
from
'
../../../../constants
'
;
...
...
@@ -119,6 +120,9 @@ const GameLevel5 = ({navigation}) => {
};
return
(
<
ScrollView
style
=
{
styles
.
scrollContainer
}
contentContainerStyle
=
{
styles
.
contentContainer
}
>
<
ImageBackground
source
=
{
IMGS
.
game_img_9
}
style
=
{
styles
.
backgroundImage
}
...
...
@@ -199,6 +203,7 @@ const GameLevel5 = ({navigation}) => {
<
/View
>
<
/View
>
<
/ImageBackground
>
<
/ScrollView
>
);
};
...
...
@@ -308,6 +313,12 @@ const styles = StyleSheet.create({
height
:
100
,
borderRadius
:
30
,
},
scrollContainer
:
{
flexGrow
:
1
,
},
contentContainer
:
{
paddingBottom
:
40
,
// Adds padding at the bottom
},
});
export
default
GameLevel5
;
src/screens/home/game/game01/GameLevel6.js
View file @
94ea193e
...
...
@@ -8,6 +8,7 @@ import {
StyleSheet
,
Alert
,
ImageBackground
,
ScrollView
,
}
from
'
react-native
'
;
import
{
IMGS
,
ROUTES
,
COLORS
}
from
'
../../../../constants
'
;
import
Sound
from
'
react-native-sound
'
;
...
...
@@ -148,6 +149,9 @@ const GameLevel6 = () => {
};
return
(
<
ScrollView
style
=
{
styles
.
scrollContainer
}
contentContainerStyle
=
{
styles
.
contentContainer
}
>
<
ImageBackground
source
=
{
IMGS
.
game_img_15
}
style
=
{
styles
.
backgroundImage
}
...
...
@@ -252,6 +256,7 @@ const GameLevel6 = () => {
<
/View
>
<
/View
>
<
/ImageBackground
>
<
/ScrollView
>
);
};
...
...
@@ -359,6 +364,12 @@ const styles = StyleSheet.create({
shadowRadius
:
2
,
elevation
:
5
,
},
scrollContainer
:
{
flexGrow
:
1
,
},
contentContainer
:
{
paddingBottom
:
40
,
// Adds padding at the bottom
},
});
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