React-native-navigation: [Android] Tab bar overlap content

Created on 1 May 2017  路  7Comments  路  Source: wix/react-native-navigation

Issue Description

Tab bars overlap the content in android. Should it add padding bottom to the inner content?

Steps to Reproduce / Code Snippets / Screenshots

screen shot 2017-05-01 at 10 41 09 pm


Environment

  • React Native Navigation version: 1.1.25
  • React Native version: 0.43.4
  • Platform(s) (iOS, Android, or both?):Android
  • Device info (Simulator/Device? OS version? Debug/Release?): Xiaomi 4c 6.0 and geny motion android 5.0

Most helpful comment

@krizzu, just a guess here but maybe you need to add a flex:1 to your flatlist (:

All 7 comments

@Ehesp : any comment , Sir?

@khatv911 You probably have drawUnderTabBar: true in the navigatorStyle of that screen

@guyca : thanks. i found out that it was because of my scrollview.

Just run into the same problem - iOS displays FlatList fine. On Android, list is being drawn under the TabBar, even if drawUnderTabBar is set to false.

@khatv911 What was your issue with ScrollView? Maybe this is somehow related :)

Android: 7.0/6.0/5.0
RN: 0.43.3
Navigation: 1.1.134

@krizzu, just a guess here but maybe you need to add a flex:1 to your flatlist (:

@kyle-ssg Have tried this already, no luck unfortunately.

@Krizzu : try this,
if your scrollview/flatlist is below a navbar, Then, set the navbar on top of it . add some padding top(equals to Navbar height) to the contentcontainerview of the scrollview.

<View style={{flex:1}}>
   <scrollView contentContainerStyle={{paddingTop:56}}/>
   <NavBar styles={{
position: "absolute",
height:56
        top: 0,
        left: 0,
        right: 0,
        paddingTop:  STATUS_BAR_HEIGHT

}}/>
</View>
Was this page helpful?
0 / 5 - 0 ratings

Related issues

EliSadaka picture EliSadaka  路  3Comments

yedidyak picture yedidyak  路  3Comments

viper4595 picture viper4595  路  3Comments

Chipped1 picture Chipped1  路  3Comments

edcs picture edcs  路  3Comments