Commit 89495241 by tungnq

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

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