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
d4555153
Commit
d4555153
authored
Dec 15, 2021
by
W.D.R.P. Sandeepa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
home page desing
parent
72ac6b1c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
57 additions
and
11 deletions
+57
-11
frontend/App.js
frontend/App.js
+1
-1
frontend/src/screen/home.js
frontend/src/screen/home.js
+56
-10
No files found.
frontend/App.js
View file @
d4555153
...
@@ -10,7 +10,7 @@ import {
...
@@ -10,7 +10,7 @@ import {
import
{
LogBox
}
from
'
react-native
'
;
import
{
LogBox
}
from
'
react-native
'
;
LogBox
.
ignoreLogs
([
'
Reanimated 2
'
]);
LogBox
.
ignoreLogs
([
'
Reanimated 2
'
]);
import
home
from
"
./src/screen/
h
ome
"
;
import
home
from
"
./src/screen/
H
ome
"
;
import
profile
from
"
./src/screen/profile
"
;
import
profile
from
"
./src/screen/profile
"
;
import
report
from
"
./src/screen/report
"
;
import
report
from
"
./src/screen/report
"
;
...
...
frontend/src/screen/home.js
View file @
d4555153
import
React
from
"
react
"
;
import
React
from
"
react
"
;
import
{
StyleSheet
,
View
,
Text
,
Pressable
}
from
'
react-native
'
;
import
{
SafeAreaView
,
ScrollView
,
View
,
Text
}
from
"
react-native
"
;
import
{
NavigationContainer
}
from
"
@react-navigation/native
"
;
import
{
createDrawerNavigator
,
DrawerItem
}
from
"
@react-navigation/drawer
"
;
import
FontAwesome5
from
'
react-native-vector-icons/FontAwesome5
'
;
import
profile
from
"
./profile
"
;
import
report
from
"
./report
"
;
export
default
function
home
({
navigation
}){
const
Drawer
=
createDrawerNavigator
();
const
onPressHandler
=
()
=>
{
function
Home
()
{
navigation
.
navigate
(
'
profile
'
);
}
return
(
return
(
<
View
>
<
Text
>
Home
<
/Text
>
<
/View
>
)
}
<
Drawer
.
Navigator
\ No newline at end of file
initialRouteName
=
"
Profile
"
screenOptions
=
{{
hearderTitleAlign
:
'
right
'
,
alignItems
:
'
center
'
,
justifyContent
:
'
center
'
,
headerStyle
:{
backgroundColor
:
'
#1DCE92
'
},
headerTintColor
:
'
#ffffff
'
}}
>
<
Drawer
.
Screen
name
=
"
Profile
"
component
=
{
profile
}
options
=
{{
title
:
'
Profile
'
,
drawerIcon
:
({
focused
})
=>
(
<
FontAwesome5
name
=
"
users
"
size
=
{
focused
?
25
:
20
}
color
=
{
focused
?
'
#1DCE92
'
:
'
#0096FF
'
}
/
>
)
}}
/
>
<
Drawer
.
Screen
name
=
"
Report
"
component
=
{
report
}
options
=
{{
title
:
'
Report
'
,
drawerIcon
:
({
focused
})
=>
(
<
FontAwesome5
name
=
"
chart-line
"
size
=
{
focused
?
25
:
20
}
color
=
{
focused
?
'
#1DCE92
'
:
'
#0096FF
'
}
/
>
)
}}
/
>
<
/Drawer.Navigator
>
);
}
export
default
Home
;
\ 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