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
27345f2b
Commit
27345f2b
authored
Aug 12, 2025
by
tungnq
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
TODO: Đã fix giao diện thành công
parent
48881347
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
5 deletions
+15
-5
TabNavigation.js
src/routers/TabNavigation.js
+15
-5
No files found.
src/routers/TabNavigation.js
View file @
27345f2b
...
@@ -4,6 +4,7 @@ import { createBottomTabNavigator } from '@react-navigation/bottom-tabs';
...
@@ -4,6 +4,7 @@ import { createBottomTabNavigator } from '@react-navigation/bottom-tabs';
import
i18n
from
'../helper/i18/i18n'
;
import
i18n
from
'../helper/i18/i18n'
;
import
{
connect
}
from
'react-redux'
;
import
{
connect
}
from
'react-redux'
;
import
R
from
'../assets/R'
;
import
R
from
'../assets/R'
;
import
{
StyleSheet
,
Platform
}
from
'react-native'
;
import
Home
from
'../screens/home'
;
import
Home
from
'../screens/home'
;
import
ELearning
from
'../screens/elearning'
;
import
ELearning
from
'../screens/elearning'
;
...
@@ -51,7 +52,7 @@ const TabNavigator = props => {
...
@@ -51,7 +52,7 @@ const TabNavigator = props => {
tabBarIcon
:
({
focused
})
=>
(
tabBarIcon
:
({
focused
})
=>
(
<
Image
<
Image
source
=
{
focused
?
R
.
images
.
icHomeSel
:
R
.
images
.
icHomeUnSel
}
source
=
{
focused
?
R
.
images
.
icHomeSel
:
R
.
images
.
icHomeUnSel
}
style
=
{
{
width
:
'50%'
,
height
:
'50%'
,
resizeMode
:
'contain'
}
}
style
=
{
styles
.
tabBarIcon
}
/
>
/
>
),
),
}}
}}
...
@@ -65,7 +66,7 @@ const TabNavigator = props => {
...
@@ -65,7 +66,7 @@ const TabNavigator = props => {
tabBarIcon
:
({
focused
})
=>
(
tabBarIcon
:
({
focused
})
=>
(
<
Image
<
Image
source
=
{
focused
?
R
.
images
.
icELearing
:
R
.
images
.
icELearingUnSel
}
source
=
{
focused
?
R
.
images
.
icELearing
:
R
.
images
.
icELearingUnSel
}
style
=
{
{
width
:
'50%'
,
height
:
'50%'
,
resizeMode
:
'contain'
}
}
style
=
{
styles
.
tabBarIcon
}
/
>
/
>
),
),
}}
}}
...
@@ -78,7 +79,7 @@ const TabNavigator = props => {
...
@@ -78,7 +79,7 @@ const TabNavigator = props => {
tabBarIcon
:
({
focused
})
=>
(
tabBarIcon
:
({
focused
})
=>
(
<
Image
<
Image
source
=
{
focused
?
R
.
images
.
icQrCode
:
R
.
images
.
icQrCodeUnSel
}
source
=
{
focused
?
R
.
images
.
icQrCode
:
R
.
images
.
icQrCodeUnSel
}
style
=
{
{
width
:
'70%'
,
height
:
'70%'
,
resizeMode
:
'contain'
}
}
style
=
{
styles
.
tabBarIcon
}
/
>
/
>
),
),
}}
}}
...
@@ -91,7 +92,7 @@ const TabNavigator = props => {
...
@@ -91,7 +92,7 @@ const TabNavigator = props => {
tabBarIcon
:
({
focused
})
=>
(
tabBarIcon
:
({
focused
})
=>
(
<
Image
<
Image
source
=
{
focused
?
R
.
images
.
icNotification
:
R
.
images
.
icNotificationUnSel
}
source
=
{
focused
?
R
.
images
.
icNotification
:
R
.
images
.
icNotificationUnSel
}
style
=
{
{
width
:
'50%'
,
height
:
'50%'
,
resizeMode
:
'contain'
}
}
style
=
{
styles
.
tabBarIcon
}
/
>
/
>
),
),
}}
}}
...
@@ -104,7 +105,7 @@ const TabNavigator = props => {
...
@@ -104,7 +105,7 @@ const TabNavigator = props => {
tabBarIcon
:
({
focused
})
=>
(
tabBarIcon
:
({
focused
})
=>
(
<
Image
<
Image
source
=
{
focused
?
R
.
images
.
icProfile
:
R
.
images
.
icProfileUn
}
source
=
{
focused
?
R
.
images
.
icProfile
:
R
.
images
.
icProfileUn
}
style
=
{
{
width
:
'50%'
,
height
:
'50%'
,
resizeMode
:
'contain'
}
}
style
=
{
styles
.
tabBarIcon
}
/
>
/
>
),
),
}}
}}
...
@@ -120,3 +121,11 @@ const mapStateToProps = state => {
...
@@ -120,3 +121,11 @@ const mapStateToProps = state => {
};
};
export
default
connect
(
mapStateToProps
,
{})(
TabNavigator
);
export
default
connect
(
mapStateToProps
,
{})(
TabNavigator
);
const
styles
=
StyleSheet
.
create
({
tabBarIcon
:
{
width
:
Platform
.
OS
===
'ios'
?
20
:
'50%'
,
height
:
Platform
.
OS
===
'ios'
?
20
:
'50%'
,
resizeMode
:
'contain'
}
});
\ 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