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
38e610cd
Commit
38e610cd
authored
Aug 24, 2021
by
Giang Tran
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update code
parent
94aecd32
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
7 deletions
+3
-7
Media.js
src/Screens/NewFeed/Media/Media.js
+1
-2
TopMedia.js
src/Screens/NewFeed/Media/TopMedia.js
+2
-5
No files found.
src/Screens/NewFeed/Media/Media.js
View file @
38e610cd
...
...
@@ -21,8 +21,7 @@ const Media = (props) => {
platform
:
Platform
.
OS
,
});
if
(
res
.
data
.
code
==
200
&&
res
.
data
.
data
)
{
if
(
res
.
data
.
data
[
0
]
&&
res
.
data
.
data
[
0
].
data
[
0
])
setMediaHot
(
res
.
data
.
data
[
0
].
data
[
0
]);
if
(
res
.
data
.
data
[
0
]
&&
res
.
data
.
data
[
0
].
data
[
0
])
setMediaHot
([]);
setData
(
res
.
data
.
data
);
}
else
{
showAlert
(
TYPE
.
ERROR
,
I18n
.
t
(
'Notification'
),
I18n
.
t
(
'Can_not_get_data'
));
...
...
src/Screens/NewFeed/Media/TopMedia.js
View file @
38e610cd
...
...
@@ -13,6 +13,7 @@ import Block from '../../../components/Block';
import
Icon
from
'react-native-vector-icons/AntDesign'
;
import
{
useNavigation
}
from
'@react-navigation/native'
;
import
{
MEDIADETAIL
}
from
'../../../routers/ScreenNames'
;
import
AppText
from
'../../../components/AppText'
;
const
MediaView
=
(
props
)
=>
{
// const {poster,title} = props.mediaHot;
...
...
@@ -74,11 +75,7 @@ const MediaView = (props) => {
);
}
return
(
<
View
>
<
Text
>
H
<
/Text
>
<
/View
>
);
return
<
View
><
/View>
;
};
const
styles
=
StyleSheet
.
create
({
...
...
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