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
7964f8ab
Commit
7964f8ab
authored
Sep 18, 2025
by
tungnq
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'tung_ui' of
http://git.dcv.vn/tungnq/AppUms_Student
into tung_ui
parents
1a35caa5
b9d66ddb
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
49 additions
and
6 deletions
+49
-6
header.js
src/screens/home/header.js
+3
-3
view.js
src/screens/home/view.js
+45
-2
view.js
src/screens/profile/view.js
+1
-1
No files found.
src/screens/home/header.js
View file @
7964f8ab
import
{
Image
,
StyleSheet
,
TextInput
,
View
}
from
"react-native"
;
import
{
Image
,
S
afeAreaView
,
StatusBar
,
S
tyleSheet
,
TextInput
,
View
}
from
"react-native"
;
import
React
from
"react"
;
import
React
from
"react"
;
import
R
from
"../../assets/R"
;
import
R
from
"../../assets/R"
;
const
customHeader
=
(
props
)
=>
{
const
customHeader
=
(
props
)
=>
{
...
@@ -39,7 +39,7 @@ const customHeader = (props) => {
...
@@ -39,7 +39,7 @@ const customHeader = (props) => {
style
=
{
styles
.
input
}
style
=
{
styles
.
input
}
/
>
/
>
<
/View
>
<
/View
>
<
/View
>
<
/
SafeArea
View
>
);
);
};
};
...
@@ -49,7 +49,6 @@ const styles = StyleSheet.create({
...
@@ -49,7 +49,6 @@ const styles = StyleSheet.create({
container
:
{
container
:
{
flexDirection
:
"row"
,
flexDirection
:
"row"
,
marginHorizontal
:
15
,
marginHorizontal
:
15
,
maxHeight
:
40
,
},
},
size_box
:{
size_box
:{
width
:
'20%'
,
width
:
'20%'
,
...
@@ -65,6 +64,7 @@ const styles = StyleSheet.create({
...
@@ -65,6 +64,7 @@ const styles = StyleSheet.create({
borderColor
:
R
.
colors
.
gray280
,
borderColor
:
R
.
colors
.
gray280
,
borderRadius
:
100
,
borderRadius
:
100
,
borderWidth
:
1
,
borderWidth
:
1
,
maxHeight
:
40
,
paddingHorizontal
:
14
,
paddingHorizontal
:
14
,
paddingVertical
:
5
paddingVertical
:
5
},
},
...
...
src/screens/home/view.js
View file @
7964f8ab
...
@@ -8,9 +8,18 @@ import {
...
@@ -8,9 +8,18 @@ import {
ScrollView
,
ScrollView
,
TouchableWithoutFeedback
,
TouchableWithoutFeedback
,
Keyboard
,
Keyboard
,
SafeAreaView
,
Image
,
Image
,
StatusBar
,
// FEATURE: Import StatusBar để control status bar
StatusBar
,
// FEATURE: Import StatusBar để control status bar
Platform
,
SafeAreaView
,
// FEATURE: Check platform iOS/Android
}
from
"react-native"
;
import
HeaderCus
from
"../home/header"
;
import
R
from
"../../assets/R"
;
import
I18n
from
"../../helper/i18/i18n"
;
import
ItemGrid
from
"./item"
;
import
styles
from
"./style"
;
import
{
useNavigation
}
from
"@react-navigation/native"
;
import
*
as
SCREENNAME
from
"../../routers/ScreenNames"
;
Platform
,
// FEATURE: Check platform iOS/Android
Platform
,
// FEATURE: Check platform iOS/Android
}
from
'react-native'
;
}
from
'react-native'
;
import
HeaderCus
from
'../home/header'
;
import
HeaderCus
from
'../home/header'
;
...
@@ -110,6 +119,27 @@ const HomeView = props => {
...
@@ -110,6 +119,27 @@ const HomeView = props => {
<
/View
>
<
/View
>
);
);
return
(
<
TouchableWithoutFeedback
onPress
=
{
Keyboard
.
dismiss
}
accessible
=
{
false
}
>
<
View
style
=
{
styles
.
container_body
}
>
<
ImageBackground
source
=
{
R
.
images
.
igBackgroundSlider
}
style
=
{[
styles
.
background_header
,
{
}]}
>
<
HeaderCus
pathLogo
=
{
R
.
images
.
igLogo
}
width
=
{
75
}
height
=
{
36
}
textInput
=
{
R
.
colors
.
white
}
backgroundInput
=
{
R
.
colors
.
backgroundInputSearch
}
textLabel
=
{
I18n
.
t
(
"Search"
)}
textColorLabel
=
{
R
.
colors
.
white
}
/
>
const
renderBody
=
()
=>
{
const
renderBody
=
()
=>
{
return
(
return
(
<
View
style
=
{[{
flex
:
1
}]}
>
<
View
style
=
{[{
flex
:
1
}]}
>
...
@@ -127,6 +157,20 @@ const HomeView = props => {
...
@@ -127,6 +157,20 @@ const HomeView = props => {
textColorLabel
=
{
R
.
colors
.
white
}
textColorLabel
=
{
R
.
colors
.
white
}
/
>
/
>
{
renderProfileCard
()}
<
/ImageBackground
>
<
ScrollView
showsVerticalScrollIndicator
=
{
false
}
style
=
{
styles
.
scroll
}
bounces
=
{
false
}
overScrollMode
=
"never"
>
{
renderMenuSection
(
"Học tập"
,
menuDataStudy
)}
{
renderMenuSection
(
"Cá nhân"
,
menuDataIndividual
)}
{
renderMenuSection
(
"Dịch vụ trực tuyến"
,
menuDataOnlineSer
)}
<
/ScrollView
>
<
/View
>
{
renderProfileCard
()}
{
renderProfileCard
()}
<
/ImageBackground
>
<
/ImageBackground
>
...
@@ -151,7 +195,6 @@ const HomeView = props => {
...
@@ -151,7 +195,6 @@ const HomeView = props => {
<
TouchableWithoutFeedback
onPress
=
{
Keyboard
.
dismiss
}
accessible
=
{
false
}
>
<
TouchableWithoutFeedback
onPress
=
{
Keyboard
.
dismiss
}
accessible
=
{
false
}
>
{
renderBody
()}
{
renderBody
()}
<
/TouchableWithoutFeedback
>
<
/TouchableWithoutFeedback
>
<
/SafeAreaView
>
);
);
};
};
...
...
src/screens/profile/view.js
View file @
7964f8ab
...
@@ -18,7 +18,7 @@ const ProfileView = (props) => {
...
@@ -18,7 +18,7 @@ const ProfileView = (props) => {
const
{
phone
,
setPhone
,
cmnd
,
setCmnd
,
bank
,
setBank
}
=
props
;
const
{
phone
,
setPhone
,
cmnd
,
setCmnd
,
bank
,
setBank
}
=
props
;
const
IconCamera
=
R
.
images
.
icCamera
;
const
IconCamera
=
R
.
images
.
icCamera
;
return
(
return
(
<
View
style
=
{{
flex
:
1
,
}}
>
<
View
style
=
{{
flex
:
1
,
backgroundColor
:
R
.
colors
.
white
}}
>
<
Header
title
=
{
"Hồ sơ cá nhân"
}
isBack
/>
<
Header
title
=
{
"Hồ sơ cá nhân"
}
isBack
/>
<
ScrollView
showsVerticalScrollIndicator
=
{
false
}
style
=
{{
flex
:
1
}}
>
<
ScrollView
showsVerticalScrollIndicator
=
{
false
}
style
=
{{
flex
:
1
}}
>
<
View
style
=
{
styles
.
container
}
>
<
View
style
=
{
styles
.
container
}
>
...
...
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