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
3461c72d
Commit
3461c72d
authored
Jan 07, 2022
by
W.D.R.P. Sandeepa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
done color part
parent
134cf0e8
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
2 deletions
+4
-2
frontend/index.js
frontend/index.js
+1
-0
frontend/src/component/colorActivity.js
frontend/src/component/colorActivity.js
+1
-0
frontend/src/screen/Color.js
frontend/src/screen/Color.js
+2
-2
No files found.
frontend/index.js
View file @
3461c72d
...
@@ -3,4 +3,5 @@ import App from './App';
...
@@ -3,4 +3,5 @@ import App from './App';
import
{
name
as
appName
}
from
'
./app.json
'
;
import
{
name
as
appName
}
from
'
./app.json
'
;
AppRegistry
.
registerComponent
(
appName
,
()
=>
App
);
AppRegistry
.
registerComponent
(
appName
,
()
=>
App
);
\ No newline at end of file
frontend/src/component/colorActivity.js
View file @
3461c72d
...
@@ -2,6 +2,7 @@ import { useNavigation } from "@react-navigation/native";
...
@@ -2,6 +2,7 @@ import { useNavigation } from "@react-navigation/native";
import
React
from
"
react
"
;
import
React
from
"
react
"
;
import
{
Text
,
TouchableOpacity
,
StyleSheet
,
View
,
Image
}
from
'
react-native
'
import
{
Text
,
TouchableOpacity
,
StyleSheet
,
View
,
Image
}
from
'
react-native
'
export
default
function
ColorActivity
(
props
){
export
default
function
ColorActivity
(
props
){
const
{
title
,
image
,
id
,
color
,
des
}
=
props
;
const
{
title
,
image
,
id
,
color
,
des
}
=
props
;
...
...
frontend/src/screen/Color.js
View file @
3461c72d
...
@@ -56,8 +56,8 @@ export default function Color(){
...
@@ -56,8 +56,8 @@ export default function Color(){
<
/View
>
<
/View
>
<
/View
>
<
/View
>
{
datas
.
map
((
data
)
=>
{
{
datas
.
map
((
data
,
index
)
=>
{
return
(
<
ColorActivity
title
=
{
data
.
name
}
image
=
{
data
.
image
}
id
=
{
data
.
idcolorActivities
}
des
=
{
data
.
des
}
color
=
{
data
.
color
}
/>
)
return
(
<
ColorActivity
key
=
{
index
}
title
=
{
data
.
name
}
image
=
{
data
.
image
}
id
=
{
data
.
idcolorActivities
}
des
=
{
data
.
des
}
color
=
{
data
.
color
}
/>
)
})}
})}
<
/ScrollView
>
<
/ScrollView
>
...
...
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