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
5f45efef
Commit
5f45efef
authored
May 20, 2021
by
Giang Tran
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update code
parent
e4406dde
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
9 additions
and
5 deletions
+9
-5
Tab1.js
src/Screens/NewFeed/Tab1/Tab1.js
+1
-0
url.js
src/apis/url.js
+1
-1
Header.js
src/components/Header/Header.js
+1
-1
HeaderBack.js
src/components/Header/HeaderBack.js
+4
-1
HeaderTitle.js
src/components/Header/HeaderTitle.js
+2
-2
No files found.
src/Screens/NewFeed/Tab1/Tab1.js
View file @
5f45efef
...
@@ -59,6 +59,7 @@ const NewFeed = (props) => {
...
@@ -59,6 +59,7 @@ const NewFeed = (props) => {
page_size
:
10
,
page_size
:
10
,
page_index
:
1
,
page_index
:
1
,
});
});
console
.
log
(
res
);
if
((
res
.
data
.
code
=
200
&&
res
.
data
.
data
))
{
if
((
res
.
data
.
code
=
200
&&
res
.
data
.
data
))
{
setData
(
res
.
data
.
data
);
setData
(
res
.
data
.
data
);
setTotalPage
(
res
.
data
.
meta
.
pages
);
setTotalPage
(
res
.
data
.
meta
.
pages
);
...
...
src/apis/url.js
View file @
5f45efef
...
@@ -9,7 +9,7 @@ export default {
...
@@ -9,7 +9,7 @@ export default {
urlGetImagesHome
:
root
+
'api/v1/slides/home'
,
urlGetImagesHome
:
root
+
'api/v1/slides/home'
,
urlVerifyAccount
:
root
+
'api/v1/customers/verify-account'
,
urlVerifyAccount
:
root
+
'api/v1/customers/verify-account'
,
urlGetListNew
:
root
+
'
/
api/v1/news/posts'
,
urlGetListNew
:
root
+
'api/v1/news/posts'
,
urlGetCategoryNew
:
root
+
'api/v1/news/categories'
,
urlGetCategoryNew
:
root
+
'api/v1/news/categories'
,
urlGetListMedia
:
root
+
'api/v1/news/videos'
,
urlGetListMedia
:
root
+
'api/v1/news/videos'
,
urlMediaDetail
:
root
+
'api/v1/videos/detail'
,
urlMediaDetail
:
root
+
'api/v1/videos/detail'
,
...
...
src/components/Header/Header.js
View file @
5f45efef
...
@@ -50,7 +50,7 @@ const HeaderHome = (props) => {
...
@@ -50,7 +50,7 @@ const HeaderHome = (props) => {
start
=
{{
x
:
0
,
y
:
0
}}
start
=
{{
x
:
0
,
y
:
0
}}
end
=
{{
x
:
0
,
y
:
1
}}
end
=
{{
x
:
0
,
y
:
1
}}
colors
=
{[
'#0062E1'
,
'#22AEFB'
]}
>
colors
=
{[
'#0062E1'
,
'#22AEFB'
]}
>
<
StatusBar
barStyle
=
"light-content"
backgroundColor
=
{
'#0062E1'
}
/
>
<
StatusBar
barStyle
=
"light-content"
translucent
=
{
true
}
/
>
<
SnackBar
/>
<
SnackBar
/>
<
View
style
=
{
styles
.
container
}
>
<
View
style
=
{
styles
.
container
}
>
<
View
style
=
{{
flex
:
1
}}
>
<
View
style
=
{{
flex
:
1
}}
>
...
...
src/components/Header/HeaderBack.js
View file @
5f45efef
...
@@ -37,7 +37,10 @@ const HeaderHome = (props) => {
...
@@ -37,7 +37,10 @@ const HeaderHome = (props) => {
onPress
=
{()
=>
navigate
.
goBack
()}
>
onPress
=
{()
=>
navigate
.
goBack
()}
>
<
Image
source
=
{
R
.
images
.
iconBack
}
style
=
{
styles
.
imgIcon
}
/
>
<
Image
source
=
{
R
.
images
.
iconBack
}
style
=
{
styles
.
imgIcon
}
/
>
<
/TouchableOpacity
>
<
/TouchableOpacity
>
<
AppText
i18nKey
=
{
title
}
style
=
{
styles
.
txtTitle
}
children
=
{
children
}
><
/AppText
>
<
AppText
i18nKey
=
{
title
}
style
=
{
styles
.
txtTitle
}
children
=
{
children
}
><
/AppText
>
<
View
style
=
{{
width
:
35
,
height
:
30
}}
/
>
<
View
style
=
{{
width
:
35
,
height
:
30
}}
/
>
<
/View
>
<
/View
>
<
/ImageBackground
>
<
/ImageBackground
>
...
...
src/components/Header/HeaderTitle.js
View file @
5f45efef
...
@@ -12,7 +12,7 @@ import {getFontXD} from '../../config/Functions';
...
@@ -12,7 +12,7 @@ import {getFontXD} from '../../config/Functions';
import
LinearGradient
from
'react-native-linear-gradient'
;
import
LinearGradient
from
'react-native-linear-gradient'
;
import
Icon
from
'react-native-vector-icons/Ionicons'
;
import
Icon
from
'react-native-vector-icons/Ionicons'
;
import
{
useNavigation
}
from
'@react-navigation/native'
;
import
{
useNavigation
}
from
'@react-navigation/native'
;
import
SnackBar
from
'../SnackBar'
import
SnackBar
from
'../SnackBar'
;
const
HeaderHome
=
(
props
)
=>
{
const
HeaderHome
=
(
props
)
=>
{
const
{
title
,
back
}
=
props
;
const
{
title
,
back
}
=
props
;
...
@@ -24,7 +24,7 @@ const HeaderHome = (props) => {
...
@@ -24,7 +24,7 @@ const HeaderHome = (props) => {
start
=
{{
x
:
0
,
y
:
0
}}
start
=
{{
x
:
0
,
y
:
0
}}
end
=
{{
x
:
0
,
y
:
1
}}
end
=
{{
x
:
0
,
y
:
1
}}
colors
=
{[
'#0062E1'
,
'#22AEFB'
]}
>
colors
=
{[
'#0062E1'
,
'#22AEFB'
]}
>
<
StatusBar
barStyle
=
"light-content"
backgroundColor
=
{
'#0062E1'
}
/
>
<
StatusBar
barStyle
=
"light-content"
translucent
=
{
true
}
/
>
<
SnackBar
/>
<
SnackBar
/>
<
View
style
=
{
styles
.
container
}
>
<
View
style
=
{
styles
.
container
}
>
{
back
?
(
{
back
?
(
...
...
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