Commit 5f45efef by Giang Tran

update code

parent e4406dde
...@@ -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);
......
...@@ -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',
......
...@@ -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}}>
......
...@@ -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>
......
...@@ -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 ? (
......
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