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
c65ac424
Commit
c65ac424
authored
Feb 02, 2022
by
W.D.R.P. Sandeepa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
change single color activity
parent
f82aa9c5
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
13 deletions
+4
-13
frontend/src/component/colorActivity.js
frontend/src/component/colorActivity.js
+1
-1
frontend/src/screen/activity/Blue.js
frontend/src/screen/activity/Blue.js
+3
-12
No files found.
frontend/src/component/colorActivity.js
View file @
c65ac424
...
@@ -10,7 +10,7 @@ export default function ColorActivity(props){
...
@@ -10,7 +10,7 @@ export default function ColorActivity(props){
const
navigation
=
useNavigation
();
const
navigation
=
useNavigation
();
return
(
return
(
<
TouchableOpacity
onPress
=
{()
=>
{
navigation
.
navigate
(
"
Blue
"
)}}
<
TouchableOpacity
onPress
=
{()
=>
{
navigation
.
navigate
(
"
Blue
"
,
{
color
})}}
style
=
{{
style
=
{{
borderWidth
:
5
,
borderWidth
:
5
,
borderColor
:
color
,
borderColor
:
color
,
...
...
frontend/src/screen/activity/Blue.js
View file @
c65ac424
...
@@ -18,9 +18,10 @@ import {
...
@@ -18,9 +18,10 @@ import {
Image
Image
}
from
'
react-native
'
}
from
'
react-native
'
export
default
function
Blue
()
{
export
default
function
Blue
(
color
)
{
const
navigation
=
useNavigation
();
const
navigation
=
useNavigation
();
const
backColor
=
color
.
route
.
params
.
color
;
React
.
useEffect
(()
=>
{
React
.
useEffect
(()
=>
{
const
unsubscribe
=
navigation
.
addListener
(
"
focus
"
,
()
=>
{
const
unsubscribe
=
navigation
.
addListener
(
"
focus
"
,
()
=>
{
...
@@ -52,7 +53,7 @@ export default function Blue() {
...
@@ -52,7 +53,7 @@ export default function Blue() {
<
Image
style
=
{
styles
.
blackboard
}
source
=
{
require
(
"
../../assets/game/blackboard.png
"
)}
><
/Image
>
<
Image
style
=
{
styles
.
blackboard
}
source
=
{
require
(
"
../../assets/game/blackboard.png
"
)}
><
/Image
>
<
View
style
=
{
styles
.
box
}
>
<
View
style
=
{
{
width
:
180
,
height
:
180
,
backgroundColor
:
backColor
,
marginTop
:
-
370
,
marginLeft
:
455
,
borderRadius
:
100
}
}
>
<
/View
>
<
/View
>
<
/View
>
<
/View
>
...
@@ -77,16 +78,6 @@ const styles = StyleSheet.create({
...
@@ -77,16 +78,6 @@ const styles = StyleSheet.create({
width
:
"
100%
"
,
width
:
"
100%
"
,
height
:
"
100%
"
,
height
:
"
100%
"
,
},
},
box
:
{
width
:
180
,
height
:
180
,
// borderColor: "#000000",
backgroundColor
:
"
red
"
,
marginTop
:
-
370
,
marginLeft
:
455
,
borderRadius
:
100
},
blackboard
:
{
blackboard
:
{
marginTop
:
-
420
,
marginTop
:
-
420
,
marginLeft
:
240
,
marginLeft
:
240
,
...
...
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