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
d593dfc8
Commit
d593dfc8
authored
Dec 22, 2021
by
W.D.R.P. Sandeepa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
color and shape card add to home page
parent
c5dcb363
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
43 additions
and
5 deletions
+43
-5
frontend/src/assets/color/background.png
frontend/src/assets/color/background.png
+0
-0
frontend/src/screen/home.js
frontend/src/screen/home.js
+43
-5
No files found.
frontend/src/assets/color/background.png
0 → 100644
View file @
d593dfc8
354 KB
frontend/src/screen/home.js
View file @
d593dfc8
import
React
from
"
react
"
;
import
React
from
"
react
"
;
import
{
StyleSheet
,
View
,
Text
,
Pressable
}
from
'
react-native
'
;
import
{
StyleSheet
,
View
,
Text
,
Pressable
,
SafeAreaView
,
ScrollView
,
Image
}
from
'
react-native
'
;
export
default
function
Home
({
navigation
}){
export
default
function
Home
({
navigation
}){
...
@@ -8,9 +8,47 @@ export default function Home({ navigation }){
...
@@ -8,9 +8,47 @@ export default function Home({ navigation }){
}
}
return
(
return
(
<
View
>
<
SafeAreaView
>
<
Text
>
Home
<
/Text
>
<
ScrollView
>
<
/View
>
<
View
style
=
{
styles
.
imageContainer
}
>
<
View
style
=
{
styles
.
imageView
}
>
<
Image
style
=
{
styles
.
image
}
source
=
{
require
(
'
../assets/color/background.png
'
)}
resizeMode
=
"
contain
"
>
<
/Image
>
<
Text
style
=
{
styles
.
text
}
>
Color
And
Shape
<
/Text
>
<
/View
>
<
/View
>
<
/ScrollView
>
<
/SafeAreaView
>
)
)
}
}
\ No newline at end of file
const
styles
=
StyleSheet
.
create
({
imageContainer
:{
flexDirection
:
"
row
"
,
marginTop
:
70
,
},
imageView
:
{
width
:
180
,
height
:
300
,
// borderWidth:1,
// borderColor: "#000",
marginHorizontal
:
15
,
borderRadius
:
50
},
image
:
{
width
:
"
100%
"
,
height
:
"
100%
"
,
borderRadius
:
50
},
text
:
{
fontSize
:
40
,
justifyContent
:
"
center
"
,
textAlign
:
"
center
"
,
marginTop
:
-
190
,
color
:
'
#ffff
'
,
fontWeight
:
"
bold
"
},
})
\ No newline at end of file
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