Commit e124cc2b by Giang Tran

update code

parent 9c2fced6
...@@ -23,7 +23,7 @@ const NewFeed = (props) => { ...@@ -23,7 +23,7 @@ const NewFeed = (props) => {
scrollEnabled: true, scrollEnabled: true,
inactiveTintColor: '#929292', inactiveTintColor: '#929292',
activeTintColor: '#1473E6', activeTintColor: '#1473E6',
labelStyle: {fontSize: getFontXD(36), fontWeight: '700'}, labelStyle: {fontSize: getFontXD(36)},
style: {backgroundColor: 'white'}, style: {backgroundColor: 'white'},
}}> }}>
<Tab.Screen <Tab.Screen
......
...@@ -23,6 +23,7 @@ const HeaderHome = (props) => { ...@@ -23,6 +23,7 @@ const HeaderHome = (props) => {
const navigate = useNavigation(); const navigate = useNavigation();
return ( return (
<ImageBackground <ImageBackground
imageStyle={{resizeMode: 'stretch'}}
style={[styles.img, isWhite ? {backgroundColor: 'white'} : {}]} style={[styles.img, isWhite ? {backgroundColor: 'white'} : {}]}
source={R.images.bgHeader}> source={R.images.bgHeader}>
<StatusBar backgroundColor="transparent" translucent={true} /> <StatusBar backgroundColor="transparent" translucent={true} />
...@@ -32,7 +33,7 @@ const HeaderHome = (props) => { ...@@ -32,7 +33,7 @@ const HeaderHome = (props) => {
</TouchableOpacity> </TouchableOpacity>
<Text style={styles.txtTitle}>{title}</Text> <Text style={styles.txtTitle}>{title}</Text>
<View /> <View style={styles.imgIcon} />
</View> </View>
</ImageBackground> </ImageBackground>
); );
......
...@@ -30,6 +30,7 @@ const HeaderDrawer = (props) => { ...@@ -30,6 +30,7 @@ const HeaderDrawer = (props) => {
return ( return (
<ImageBackground <ImageBackground
imageStyle={{resizeMode: 'stretch'}}
style={[styles.img, isWhite ? {backgroundColor: 'white'} : {}]} style={[styles.img, isWhite ? {backgroundColor: 'white'} : {}]}
source={R.images.bgHeader}> source={R.images.bgHeader}>
<StatusBar backgroundColor="transparent" translucent={true} /> <StatusBar backgroundColor="transparent" translucent={true} />
...@@ -39,7 +40,7 @@ const HeaderDrawer = (props) => { ...@@ -39,7 +40,7 @@ const HeaderDrawer = (props) => {
</TouchableOpacity> </TouchableOpacity>
<Text style={styles.txtTitle}>{title}</Text> <Text style={styles.txtTitle}>{title}</Text>
<View /> <View style={styles.imgIcon} />
</View> </View>
<Modal <Modal
animationIn={'fadeInLeft'} animationIn={'fadeInLeft'}
...@@ -83,7 +84,7 @@ const styles = StyleSheet.create({ ...@@ -83,7 +84,7 @@ const styles = StyleSheet.create({
paddingTop: 30, paddingTop: 30,
}, },
headerContainer: { headerContainer: {
height: 55, height: 40,
paddingTop: 10, paddingTop: 10,
width: '100%', width: '100%',
alignItems: 'center', alignItems: 'center',
......
...@@ -28,7 +28,10 @@ const HeaderHome = (props) => { ...@@ -28,7 +28,10 @@ const HeaderHome = (props) => {
}; };
return ( return (
<ImageBackground style={styles.img} source={R.images.bgHeader}> <ImageBackground
imageStyle={{resizeMode: 'stretch'}}
style={styles.img}
source={R.images.bgHeader}>
<StatusBar backgroundColor="transparent" translucent={true} /> <StatusBar backgroundColor="transparent" translucent={true} />
<View style={styles.headerContainer}> <View style={styles.headerContainer}>
<TouchableOpacity onPress={toggleModal}> <TouchableOpacity onPress={toggleModal}>
...@@ -36,7 +39,7 @@ const HeaderHome = (props) => { ...@@ -36,7 +39,7 @@ const HeaderHome = (props) => {
</TouchableOpacity> </TouchableOpacity>
<Text style={styles.txtTitle}>Tài khon</Text> <Text style={styles.txtTitle}>Tài khon</Text>
<View /> <View style={styles.imgIcon} />
</View> </View>
<Modal <Modal
animationIn={'fadeInLeft'} animationIn={'fadeInLeft'}
...@@ -80,7 +83,7 @@ const styles = StyleSheet.create({ ...@@ -80,7 +83,7 @@ const styles = StyleSheet.create({
paddingTop: 30, paddingTop: 30,
}, },
headerContainer: { headerContainer: {
height: 55, height: 40,
paddingTop: 10, paddingTop: 10,
width: '100%', width: '100%',
alignItems: 'center', alignItems: 'center',
......
...@@ -35,6 +35,7 @@ const HeaderSearch = (props) => { ...@@ -35,6 +35,7 @@ const HeaderSearch = (props) => {
return ( return (
<ImageBackground <ImageBackground
imageStyle={{resizeMode: 'stretch'}}
style={[styles.img, isWhite ? {backgroundColor: 'white'} : {}]} style={[styles.img, isWhite ? {backgroundColor: 'white'} : {}]}
source={R.images.bgHeader}> source={R.images.bgHeader}>
<StatusBar backgroundColor="transparent" translucent={true} /> <StatusBar backgroundColor="transparent" translucent={true} />
...@@ -81,7 +82,7 @@ const styles = StyleSheet.create({ ...@@ -81,7 +82,7 @@ const styles = StyleSheet.create({
paddingTop: 30, paddingTop: 30,
}, },
headerContainer: { headerContainer: {
height: 55, height: 40,
paddingTop: 10, paddingTop: 10,
width: '100%', width: '100%',
alignItems: 'center', alignItems: 'center',
......
...@@ -39,6 +39,7 @@ const HeaderSearch = (props) => { ...@@ -39,6 +39,7 @@ const HeaderSearch = (props) => {
return ( return (
<ImageBackground <ImageBackground
imageStyle={{resizeMode: 'stretch'}}
style={[styles.img, isWhite ? {backgroundColor: 'white'} : {}]} style={[styles.img, isWhite ? {backgroundColor: 'white'} : {}]}
source={R.images.bgHeader}> source={R.images.bgHeader}>
<StatusBar backgroundColor="transparent" translucent={true} /> <StatusBar backgroundColor="transparent" translucent={true} />
...@@ -105,7 +106,7 @@ const styles = StyleSheet.create({ ...@@ -105,7 +106,7 @@ const styles = StyleSheet.create({
paddingTop: 30, paddingTop: 30,
}, },
headerContainer: { headerContainer: {
height: 55, height: 40,
paddingTop: 10, paddingTop: 10,
width: '100%', width: '100%',
alignItems: 'center', alignItems: 'center',
......
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