Commit 89495241 by tungnq

TODO: Đã fix header thành công

parent 322e9ca4
...@@ -28,8 +28,8 @@ const Header = props => { ...@@ -28,8 +28,8 @@ const Header = props => {
<SafeAreaView style={styles.safeArea}> <SafeAreaView style={styles.safeArea}>
<StatusBar <StatusBar
barStyle="light-content" barStyle="light-content"
backgroundColor="transparent" translucent={false}
translucent={true} backgroundColor='black'
/> />
<View style={styles.headerContainer}> <View style={styles.headerContainer}>
<Text numberOfLines={1} style={styles.txtTitle}> <Text numberOfLines={1} style={styles.txtTitle}>
......
...@@ -12,8 +12,8 @@ const HeaderHome = (props) => { ...@@ -12,8 +12,8 @@ const HeaderHome = (props) => {
<SafeAreaView style={styles.containerBoxHeader}> <SafeAreaView style={styles.containerBoxHeader}>
<StatusBar <StatusBar
barStyle="light-content" barStyle="light-content"
backgroundColor="transparent" translucent={false}
translucent={true} backgroundColor='black'
/> />
<View style={styles.boxLogo}> <View style={styles.boxLogo}>
<Image <Image
......
...@@ -7,6 +7,7 @@ const styles = StyleSheet.create({ ...@@ -7,6 +7,7 @@ const styles = StyleSheet.create({
flexDirection: "row", flexDirection: "row",
marginHorizontal: 15, marginHorizontal: 15,
maxHeight: 40, maxHeight: 40,
marginTop:15
}, },
boxLogo:{ boxLogo:{
flex: 2, flex: 2,
......
...@@ -169,10 +169,7 @@ const HomeView = (props) => { ...@@ -169,10 +169,7 @@ const HomeView = (props) => {
<View style={styles.container_body}> <View style={styles.container_body}>
<ImageBackground <ImageBackground
source={R.images.igBackground} source={R.images.igBackground}
style={[styles.background_header, { style={styles.background_header}
// FIXME: Extend background lên trên để cover status bar
paddingTop: Platform.OS === 'ios' ? 50 : (StatusBar.currentHeight || 0) + 10,
}]}
> >
<HeaderCus <HeaderCus
value={searchText} value={searchText}
...@@ -184,8 +181,8 @@ const HomeView = (props) => { ...@@ -184,8 +181,8 @@ const HomeView = (props) => {
<ScrollView <ScrollView
showsVerticalScrollIndicator={false} showsVerticalScrollIndicator={false}
style={styles.scroll} style={styles.scroll}
bounces={false} // OPTIMIZE: Tắt bounce effect bounces={false}
overScrollMode="never" // OPTIMIZE: Android không over scroll overScrollMode="never"
> >
{renderMenuActivity()} {renderMenuActivity()}
{renderMenuStatistics()} {renderMenuStatistics()}
......
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