Commit 5f45efef by Giang Tran

update code

parent e4406dde
......@@ -59,6 +59,7 @@ const NewFeed = (props) => {
page_size: 10,
page_index: 1,
});
console.log(res);
if ((res.data.code = 200 && res.data.data)) {
setData(res.data.data);
setTotalPage(res.data.meta.pages);
......
......@@ -9,7 +9,7 @@ export default {
urlGetImagesHome: root + 'api/v1/slides/home',
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',
urlGetListMedia: root + 'api/v1/news/videos',
urlMediaDetail: root + 'api/v1/videos/detail',
......
......@@ -50,7 +50,7 @@ const HeaderHome = (props) => {
start={{x: 0, y: 0}}
end={{x: 0, y: 1}}
colors={['#0062E1', '#22AEFB']}>
<StatusBar barStyle="light-content" backgroundColor={'#0062E1'} />
<StatusBar barStyle="light-content" translucent={true} />
<SnackBar />
<View style={styles.container}>
<View style={{flex: 1}}>
......
......@@ -37,7 +37,10 @@ const HeaderHome = (props) => {
onPress={() => navigate.goBack()}>
<Image source={R.images.iconBack} style={styles.imgIcon} />
</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>
</ImageBackground>
......
......@@ -12,7 +12,7 @@ import {getFontXD} from '../../config/Functions';
import LinearGradient from 'react-native-linear-gradient';
import Icon from 'react-native-vector-icons/Ionicons';
import {useNavigation} from '@react-navigation/native';
import SnackBar from '../SnackBar'
import SnackBar from '../SnackBar';
const HeaderHome = (props) => {
const {title, back} = props;
......@@ -24,7 +24,7 @@ const HeaderHome = (props) => {
start={{x: 0, y: 0}}
end={{x: 0, y: 1}}
colors={['#0062E1', '#22AEFB']}>
<StatusBar barStyle="light-content" backgroundColor={'#0062E1'} />
<StatusBar barStyle="light-content" translucent={true} />
<SnackBar />
<View style={styles.container}>
{back ? (
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment