Hide navigation bar in NavigatorIOS component (reaction-native) does not work after updating RN

I recently updated my own native project from ~ 0.28 to the latest version (0.43.2), and for some reason my navigation bar is no longer hiding for me.

Here is the code (it sits in the TabBarIOS component):

<TabBarIOS.Item selected={this.state.selectedTab === 'home'} title='Home' icon={require ('./Icons/IconImages/HomeTabIcon.png')} onPress={ () => this._tabPressed('home') }> <NavigatorIOS style={styles.container} ref="nav" interactivePopGestureEnabled={false} initialRoute={{ title: 'Home', component: HomeNavigationController, navigationBarHidden: true, //this does nothing now showTabBar: false, //this is to hide the bottom tabBar passProps: { ... }, }}/> </TabBarIOS.Item> 

Adding it outside of initialRoute also does not work:

  <NavigatorIOS style={styles.container} ref="nav" interactivePopGestureEnabled={false} initialRoute={{ title: 'Home', component: HomeNavigationController, showTabBar: false, passProps: {...}, }} navigationBarHidden={true} // does not work /> 
+5
source share
1 answer

So, trying to isolate the problem, deleting everything and reducing it to the most basic form, I realized that the problem was not what I could find.

I initialized a new project from scratch and then re-added all my components and now it works fine.

+2
source

Source: https://habr.com/ru/post/1266666/


All Articles