Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
21_22-J 38
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
21_22-J 38
21_22-J 38
Commits
b4b94353
Commit
b4b94353
authored
Apr 30, 2022
by
Neranga K.T.
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
coundown
parent
94b1377f
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
17 additions
and
6 deletions
+17
-6
frontend/src/constants/Countdown.js
frontend/src/constants/Countdown.js
+5
-0
frontend/src/screen/memory/elementry/GameScreenFive.js
frontend/src/screen/memory/elementry/GameScreenFive.js
+2
-1
frontend/src/screen/memory/elementry/GameScreenFour.js
frontend/src/screen/memory/elementry/GameScreenFour.js
+2
-1
frontend/src/screen/memory/elementry/GameScreenOne.js
frontend/src/screen/memory/elementry/GameScreenOne.js
+2
-1
frontend/src/screen/memory/elementry/GameScreenSix.js
frontend/src/screen/memory/elementry/GameScreenSix.js
+2
-1
frontend/src/screen/memory/elementry/GameScreenThree.js
frontend/src/screen/memory/elementry/GameScreenThree.js
+2
-1
frontend/src/screen/memory/elementry/GameScreenTwo.js
frontend/src/screen/memory/elementry/GameScreenTwo.js
+2
-1
No files found.
frontend/src/constants/Countdown.js
0 → 100644
View file @
b4b94353
export
default
{
elementry
:
5
,
average
:
3
,
hard
:
3
}
\ No newline at end of file
frontend/src/screen/memory/elementry/GameScreenFive.js
View file @
b4b94353
import
React
,
{
useState
,
useEffect
}
from
'
react
'
;
import
{
View
,
Text
,
StyleSheet
,
Image
}
from
'
react-native
'
;
import
CountDown
from
'
react-native-countdown-component
'
;
import
Countdown
from
'
../../../constants/Countdown
'
;
const
GameScreenFive
=
({
navigation
})
=>
{
...
...
@@ -15,7 +16,7 @@ const GameScreenFive = ({navigation}) => {
<
/View
>
<
CountDown
size
=
{
40
}
until
=
{
5
}
until
=
{
Countdown
.
elementry
}
// onFinish={() => alert('Finished')}
onFinish
=
{()
=>
navigation
.
navigate
(
'
GameScreenFiveAll
'
)}
digitStyle
=
{{
backgroundColor
:
'
#FFF
'
,
borderWidth
:
2
,
borderColor
:
'
#1CC625
'
}}
...
...
frontend/src/screen/memory/elementry/GameScreenFour.js
View file @
b4b94353
import
React
,
{
useState
,
useEffect
}
from
'
react
'
;
import
{
View
,
Text
,
StyleSheet
,
Image
}
from
'
react-native
'
;
import
CountDown
from
'
react-native-countdown-component
'
;
import
Countdown
from
'
../../../constants/Countdown
'
;
const
GameScreenFour
=
({
navigation
})
=>
{
...
...
@@ -22,7 +23,7 @@ const GameScreenFour = ({navigation}) => {
<
Text
style
=
{
styles
.
imageText
}
>
Car
-
කාරය
<
/Text
>
<
CountDown
size
=
{
40
}
until
=
{
5
}
until
=
{
Countdown
.
elementry
}
// onFinish={() => alert('Finished')}
onFinish
=
{()
=>
navigation
.
navigate
(
'
GameScreenFourAll
'
)}
digitStyle
=
{{
backgroundColor
:
'
#FFF
'
,
borderWidth
:
2
,
borderColor
:
'
#1CC625
'
}}
...
...
frontend/src/screen/memory/elementry/GameScreenOne.js
View file @
b4b94353
...
...
@@ -5,6 +5,7 @@ import CountDown from 'react-native-countdown-component';
import
{
useDispatch
}
from
'
react-redux
'
;
import
*
as
memoryActions
from
'
../../../store/actions/memory
'
;
import
Levels
from
'
../../../constants/Levels
'
;
import
Countdown
from
'
../../../constants/Countdown
'
;
const
GameScreenOne
=
({
navigation
})
=>
{
...
...
@@ -31,7 +32,7 @@ const GameScreenOne = ({navigation}) => {
<
Text
style
=
{
styles
.
imageText
}
>
Pencil
-
පැන්සල
<
/Text
>
<
CountDown
size
=
{
40
}
until
=
{
5
}
until
=
{
Countdown
.
elementry
}
// onFinish={() => alert('Finished')}
onFinish
=
{()
=>
navigation
.
navigate
(
'
GameScreenOneAll
'
)}
digitStyle
=
{{
backgroundColor
:
'
#FFF
'
,
borderWidth
:
2
,
borderColor
:
'
#1CC625
'
}}
...
...
frontend/src/screen/memory/elementry/GameScreenSix.js
View file @
b4b94353
import
React
,
{
useState
,
useEffect
}
from
'
react
'
;
import
{
View
,
Text
,
StyleSheet
,
Image
}
from
'
react-native
'
;
import
CountDown
from
'
react-native-countdown-component
'
;
import
Countdown
from
'
../../../constants/Countdown
'
;
const
GameScreenSix
=
({
navigation
})
=>
{
...
...
@@ -16,7 +17,7 @@ const GameScreenSix = ({navigation}) => {
<
Text
style
=
{
styles
.
imageText
}
>
Pencil
-
පැන්සල
<
/Text
>
<
CountDown
size
=
{
40
}
until
=
{
5
}
until
=
{
Countdown
.
elementry
}
// onFinish={() => alert('Finished')}
onFinish
=
{()
=>
navigation
.
navigate
(
'
GameScreenSixAll
'
)}
digitStyle
=
{{
backgroundColor
:
'
#FFF
'
,
borderWidth
:
2
,
borderColor
:
'
#1CC625
'
}}
...
...
frontend/src/screen/memory/elementry/GameScreenThree.js
View file @
b4b94353
import
React
,
{
useState
,
useEffect
}
from
'
react
'
;
import
{
View
,
Text
,
StyleSheet
,
Image
}
from
'
react-native
'
;
import
CountDown
from
'
react-native-countdown-component
'
;
import
Countdown
from
'
../../../constants/Countdown
'
;
const
GameScreenThree
=
({
navigation
})
=>
{
...
...
@@ -16,7 +17,7 @@ const GameScreenThree = ({navigation}) => {
<
Text
style
=
{
styles
.
imageText
}
>
Flower
-
මල
<
/Text
>
<
CountDown
size
=
{
40
}
until
=
{
5
}
until
=
{
Countdown
.
elementry
}
// onFinish={() => alert('Finished')}
onFinish
=
{()
=>
navigation
.
navigate
(
'
GameScreenThreeAll
'
)}
digitStyle
=
{{
backgroundColor
:
'
#FFF
'
,
borderWidth
:
2
,
borderColor
:
'
#1CC625
'
}}
...
...
frontend/src/screen/memory/elementry/GameScreenTwo.js
View file @
b4b94353
import
React
,
{
useState
,
useEffect
}
from
'
react
'
;
import
{
View
,
Text
,
StyleSheet
,
Image
}
from
'
react-native
'
;
import
CountDown
from
'
react-native-countdown-component
'
;
import
Countdown
from
'
../../../constants/Countdown
'
;
const
GameScreenTwo
=
({
navigation
})
=>
{
...
...
@@ -16,7 +17,7 @@ const GameScreenTwo = ({navigation}) => {
<
Text
style
=
{
styles
.
imageText
}
>
Ball
-
බෝලය
<
/Text
>
<
CountDown
size
=
{
40
}
until
=
{
5
}
until
=
{
Countdown
.
elementry
}
// onFinish={() => alert('Finished')}
onFinish
=
{()
=>
navigation
.
navigate
(
'
GameScreenTwoAll
'
)}
digitStyle
=
{{
backgroundColor
:
'
#FFF
'
,
borderWidth
:
2
,
borderColor
:
'
#1CC625
'
}}
...
...
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