Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
AppUms_Lecturer
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
tungnq
AppUms_Lecturer
Commits
078dcd66
Commit
078dcd66
authored
Sep 05, 2025
by
tungnq
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
TODO: Đã dựng thành công header và drawer navigaiton
parent
9948f7fa
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
70 additions
and
52 deletions
+70
-52
drawerView.js
src/routers/drawer_email/drawerView.js
+17
-8
itemDrawer.js
src/routers/drawer_email/itemDrawer.js
+1
-1
style.js
src/routers/drawer_email/style.js
+45
-38
style.js
src/screens/email/style.js
+3
-2
view.js
src/screens/email/view.js
+4
-3
No files found.
src/routers/drawer_email/drawerView.js
View file @
078dcd66
...
...
@@ -52,8 +52,8 @@ const DrawerNavigatorEmailView = (props) =>{
},
[]);
const
MenuButton
=
({
onPress
})
=>
(
<
TouchableOpacity
style
=
{
styles
.
sizeBox
}
onPress
=
{
onPress
}
>
<
Image
source
=
{
IconMenu
}
style
=
{
styles
.
iconMenu
}
tintColor
=
{
R
.
colors
.
white
}
/
>
<
TouchableOpacity
style
=
{
[
styles
.
sizeBox
,
{
marginLeft
:
10
}]
}
onPress
=
{
onPress
}
>
<
Image
source
=
{
IconMenu
}
style
=
{
styles
.
iconMenu
}
tintColor
=
{
R
.
colors
.
gray2
}
/
>
<
/TouchableOpacity
>
)
...
...
@@ -62,8 +62,10 @@ const DrawerNavigatorEmailView = (props) =>{
drawerContent
=
{(
drawerProps
)
=>
<
CustomDrawerMailContent
{...
drawerProps
}
/>
}
initialRouteName
=
{
ScreenName
.
EMAIL
}
screenOptions
=
{({
navigation
,
route
})
=>
({
headerLeft
:()
=>
(
<
View
style
=
{
styles
.
headerLeft
}
>
header
:
()
=>
(
<
View
style
=
{
styles
.
headerTitleContainer
}
>
<
View
>
<
HeaderBackButton
onPress
=
{
()
=>
{
...
...
@@ -76,15 +78,22 @@ const DrawerNavigatorEmailView = (props) =>{
}
canGoBack
=
{
navigation
.
canGoBack
()}
/
>
<
/View
>
<
View
style
=
{
styles
.
headerRight
}
>
<
MenuButton
onPress
=
{()
=>
navigation
.
toggleDrawer
()}
/
>
<
View
style
=
{
styles
.
avatar
}
><
/View
>
<
/View
>
),
headerTitle
:
()
=>
(
<
View
style
=
{
styles
.
headerTitleContainer
}
>
<
HeaderTitle
navigation
=
{
navigation
}
route
=
{
route
}
/
>
<
/View
>
),
headerStyle
:
{
backgroundColor
:
R
.
colors
.
blue
,
},
})}
>
<
Drawer
.
Screen
...
...
src/routers/drawer_email/itemDrawer.js
View file @
078dcd66
...
...
@@ -52,7 +52,7 @@ const CustomDrawerMailContent = (props) => {
source
=
{
item
.
icon
}
style
=
{
styles
.
icon
}
resizeMode
=
"contain"
tintColor
=
{
isSel
?
R
.
colors
.
blue
:
R
.
colors
.
white
}
tintColor
=
{
isSel
?
R
.
colors
.
white
:
R
.
colors
.
black
}
/
>
<
Text
style
=
{[
styles
.
label
,
...
...
src/routers/drawer_email/style.js
View file @
078dcd66
import
{
StyleSheet
,
Text
,
View
}
from
'react-native'
import
R
from
'../../assets/R'
const
styles
=
StyleSheet
.
create
({
sizeBox
:{
...
...
@@ -8,24 +9,27 @@ const styles = StyleSheet.create({
width
:
25
,
height
:
20
},
iconMenu
:
{
width
:
25
,
height
:
20
},
headerLeft
:
{
flexDirection
:
'row'
,
alignItems
:
'center'
},
headerTitleContainer
:{
height
:
56
,
flexDirection
:
'row'
,
alignItems
:
'center'
,
justifyContent
:
'center'
alignItems
:
'center'
,
backgroundColor
:
R
.
colors
.
blue
,
},
avatar
:
{
width
:
30
,
height
:
30
,
borderRadius
:
15
,
backgroundColor
:
'#ccc'
logoContainer
:{
paddingLeft
:
15
,
marginVertical
:
10
},
headerRight
:{
flex
:
1
,
flexDirection
:
'row'
,
alignItems
:
'center'
,
backgroundColor
:
R
.
colors
.
white
,
borderRadius
:
105
,
padding
:
5
,
marginRight
:
15
,
marginLeft
:
5
,
justifyContent
:
'space-between'
,
width
:
'100%'
},
itemContainer
:{
flexDirection
:
'row'
,
...
...
@@ -34,36 +38,39 @@ const styles = StyleSheet.create({
paddingHorizontal
:
15
,
marginVertical
:
5
},
itemSel
:
{
backgroundColor
:
'rgba(0, 122, 255, 0.1)'
itemSel
:{
backgroundColor
:
R
.
colors
.
blue
,
marginHorizontal
:
15
,
borderRadius
:
15
,
},
icon
:
{
width
:
24
,
height
:
24
,
marginRight
:
10
logo
:{
width
:
49
,
height
:
40
},
label
:
{
f
ontSize
:
16
,
color
:
'#333'
scrollView
:
{
f
lex
:
1
,
backgroundColor
:
R
.
colors
.
white
},
labelSel
:
{
color
:
'#007AFF'
,
fontWeight
:
'bold'
headerLeft
:{
flexDirection
:
'row'
,
},
scrollView
:
{
flex
:
1
iconMenu
:{
width
:
25
,
height
:
20
,
},
logoContainer
:
{
alignItems
:
'center'
,
paddingVertical
:
20
avatar
:{
width
:
25
,
height
:
25
,
borderRadius
:
15
,
backgroundColor
:
R
.
colors
.
black
,
marginRight
:
5
},
logo
:{
width
:
49
,
height
:
2
4
icon
:{
width
:
25
,
height
:
2
5
,
},
itemSection
:
{
flex
:
1
,
paddingTop
:
10
label
:{
marginLeft
:
8
}
})
...
...
src/screens/email/style.js
View file @
078dcd66
...
...
@@ -8,8 +8,8 @@ const styles = StyleSheet.create({
},
body
:{
flex
:
1
,
backgroundColor
:
R
.
colors
.
white
}
},
})
export
default
styles
\ No newline at end of file
src/screens/email/view.js
View file @
078dcd66
import
React
from
'react'
;
import
{
Text
,
View
,
TouchableOpacity
,
StyleSheet
}
from
'react-native'
;
import
styles
from
'./style'
;
import
Header
from
'../../components/Header/Header'
;
const
EmailHomeView
=
(
props
)
=>
{
const
{
}
=
props
;
return
(
<
View
style
=
{
styles
.
container
}
>
<
TouchableOpacity
>
<
Text
>
EmailHome
<
/Text
>
<
/TouchableOpacity
>
<
View
>
<
/View
>
<
/View
>
);
};
...
...
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