Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
AppUms_Student
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_Student
Commits
1d341776
Commit
1d341776
authored
Aug 12, 2025
by
nguyenquangtung004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
TODO: Đã fix xong để không bị lộ khoảng trắng của SafeAreaView
parent
4ffede00
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
11 deletions
+15
-11
Header.js
src/components/Header/Header.js
+13
-7
view.js
src/screens/profile/view.js
+0
-2
view.js
src/screens/roll_call/detail/view.js
+2
-2
No files found.
src/components/Header/Header.js
View file @
1d341776
...
...
@@ -5,6 +5,7 @@ import {
Text
,
TouchableOpacity
,
View
,
StatusBar
,
}
from
'react-native'
;
import
R
from
'../../assets/R'
;
import
{
...
...
@@ -13,14 +14,17 @@ import {
WIDTH
,
}
from
'../../config/Functions'
;
import
{
useNavigation
}
from
'@react-navigation/native'
;
const
Header
=
props
=>
{
const
{
title
,
isBack
,
isSearch
}
=
props
;
const
navigat
e
=
useNavigation
();
const
navigat
ion
=
useNavigation
();
const
IconBack
=
R
.
images
.
icBack
;
const
IconSearch
=
R
.
images
.
icSearch
;
return
(
<>
<
SafeAreaView
>
<
SafeAreaView
style
=
{
styles
.
safeArea
}
>
<
StatusBar
barStyle
=
"light-content"
backgroundColor
=
{
R
.
colors
.
blue500
}
/
>
<
View
style
=
{
styles
.
headerContainer
}
>
{
isSearch
&&
(
<
TouchableOpacity
...
...
@@ -29,6 +33,7 @@ const Header = props => {
<
IconSearch
stroke
=
{
R
.
colors
.
white
}
strokeWidth
=
{
2
}
width
=
{
20
}
height
=
{
20
}
/
>
<
/TouchableOpacity
>
)}
<
Text
numberOfLines
=
{
1
}
style
=
{
styles
.
txtTitle
}
>
{
title
}
<
/Text
>
...
...
@@ -36,21 +41,23 @@ const Header = props => {
{
isBack
&&
(
<
TouchableOpacity
style
=
{
styles
.
btnBack
}
onPress
=
{()
=>
navigate
.
goBack
()}
>
onPress
=
{()
=>
navigation
.
goBack
()}
>
<
IconBack
width
=
{
20
}
height
=
{
20
}
/
>
<
/TouchableOpacity
>
)}
<
/View
>
<
/SafeAreaView
>
<
/
>
);
};
export
default
Header
;
const
styles
=
StyleSheet
.
create
({
safeArea
:
{
backgroundColor
:
R
.
colors
.
blue500
,
},
headerContainer
:
{
height
:
HEIGHT
(
5
0
),
height
:
HEIGHT
(
3
0
),
width
:
'100%'
,
flexDirection
:
'row'
,
alignItems
:
'center'
,
...
...
@@ -66,7 +73,6 @@ const styles = StyleSheet.create({
shadowRadius
:
5
,
elevation
:
5
,
},
txtTitle
:
{
flex
:
1
,
fontSize
:
getFontSize
(
16
),
...
...
src/screens/profile/view.js
View file @
1d341776
...
...
@@ -344,9 +344,7 @@ export default ProfileView;
const
styles
=
StyleSheet
.
create
({
container
:
{
flex
:
1
,
backgroundColor
:
R
.
colors
.
white
,
paddingHorizontal
:
15
,
paddingTop
:
15
,
paddingBottom
:
9
,
},
body_header
:
{
...
...
src/screens/roll_call/detail/view.js
View file @
1d341776
...
...
@@ -54,7 +54,7 @@ const DetailRollCallView = (props) => {
};
return
(
<
SafeArea
View
style
=
{
styles
.
container
}
>
<
View
style
=
{
styles
.
container
}
>
<
Header
isBack
title
=
{
'Thông tin điểm danh lớp ADCV'
}
...
...
@@ -113,7 +113,7 @@ const DetailRollCallView = (props) => {
<
/ScrollView
>
<
/View
>
<
/
SafeArea
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