Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
I
InvestCustomer
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
1
Merge Requests
1
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
Giang Tran
InvestCustomer
Commits
fbce9686
Commit
fbce9686
authored
Jun 03, 2021
by
Giang Tran
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix bug home
parent
9f568dc5
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
10 deletions
+10
-10
Podfile
ios/Podfile
+0
-0
Home.js
src/Screens/Home/Home.js
+2
-5
HomeView.js
src/Screens/Home/HomeView.js
+5
-1
TabNavigation.js
src/routers/TabNavigation.js
+3
-4
No files found.
ios/Podfile
View file @
fbce9686
src/Screens/Home/Home.js
View file @
fbce9686
import
React
,
{
useEffect
,
useState
}
from
'react'
;
import
{
Alert
,
Platform
}
from
'react-native'
;
import
{
Alert
,
Platform
,
View
}
from
'react-native'
;
import
{
connect
}
from
'react-redux'
;
import
{
getTransaction
}
from
'../../apis/Functions/users'
;
import
{
getImagesHome
}
from
'../../apis/Functions/General'
;
...
...
@@ -180,7 +180,6 @@ const Home = (props) => {
};
return
(
<>
<
HomeView
data
=
{
data
}
dataPrice
=
{
dataPriceFilter
}
...
...
@@ -193,11 +192,9 @@ const Home = (props) => {
onSortByPriceOpenClose
=
{
onSortByPriceOpenClose
}
onSortByPriceHighLow
=
{
onSortByPriceHighLow
}
/
>
<
VersionChecker
/>
<
/
>
);
};
<
VersionChecker
/>
;
const
mapStateToProps
=
(
state
)
=>
{
return
{
user
:
state
.
userReducer
,
...
...
src/Screens/Home/HomeView.js
View file @
fbce9686
...
...
@@ -4,13 +4,15 @@ import {
ImageBackground
,
StyleSheet
,
ScrollView
,
TouchableOpacity
,
Text
,
}
from
'react-native'
;
import
HeaderHome
from
'../../components/Header/HeaderHome'
;
import
{
getFontXD
}
from
'../../Config/Functions'
;
import
R
from
'../../assets/R'
;
import
SwiperComponent
from
'./SwiperComponent'
;
import
PriceListView
from
'./PriceListView'
;
import
VersionChecker
from
'../VersionChecker'
;
const
HomeView
=
(
props
)
=>
{
return
(
<
ImageBackground
...
...
@@ -34,6 +36,8 @@ const HomeView = (props) => {
onSortByPriceOpenClose
=
{
props
.
onSortByPriceOpenClose
}
onSortByPriceHighLow
=
{
props
.
onSortByPriceHighLow
}
/
>
<
VersionChecker
/>
<
/ScrollView
>
<
/ImageBackground
>
);
...
...
src/routers/TabNavigation.js
View file @
fbce9686
...
...
@@ -117,11 +117,10 @@ const TabNavigator = (props) => {
options
=
{{
tabBarLabel
:
'Overview'
,
tabBarIcon
:
({
color
,
size
})
=>
(
<
Icon
name
=
"landmark"
size
=
{
size
}
color
=
{
color
}
/
>
<
Icon
name
=
"landmark"
size
=
{
size
}
color
=
{
color
}
/
>
),
}}
/
>
<
Tab
.
Screen
name
=
"Screen2"
component
=
{
Transaction
}
...
...
@@ -141,7 +140,7 @@ const TabNavigator = (props) => {
name
=
"Pay"
component
=
{
PayScreenComponent
}
options
=
{{
tabBarButton
:
()
=>
<
PlussModal
/>
,
tabBarButton
:
()
=>
<
PlussModal
/>
,
}}
/
>
...
...
@@ -166,7 +165,7 @@ const TabNavigator = (props) => {
options
=
{{
tabBarLabel
:
props
.
language
.
language
==
'vi'
?
'Tin tức'
:
'News'
,
tabBarIcon
:
({
color
,
size
})
=>
(
<
Ionicons
name
=
"newspaper-outline"
size
=
{
size
}
color
=
{
color
}
/
>
<
Ionicons
name
=
"newspaper-outline"
size
=
{
size
}
color
=
{
color
}
/
>
),
}}
/
>
...
...
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