Skip to content

Nested Scenes with 2 successive hideNavBar Scenes causes all other Scenes not to have Nav Bar #1330

Closed
@gavin-gmlab

Description

@gavin-gmlab

Version

Tell us which versions you are using:

  • react-native-router-flux v3.35
  • react-native v0.35
     <Router>
        <Scene key='drawer' component={NavigationDrawer} open={false}>
          <Scene key='drawerChildrenWrapper' navigationBarStyle={Styles.navBar} titleStyle={Styles.title} leftButtonIconStyle={Styles.leftButton} rightButtonTextStyle={Styles.rightButton}>
            <Scene initial key='splashScreen' component={SplashScreen} title='Components' hideNavBar='true' />
            <Scene key='mainLoginScreen' component={MainLoginScreen} title='Login' hideNavBar='true' /> 
            <Scene key='mainScreen' component={MainScreen} title='Home'/> <=== Nav bar no longer appears for all subsequent screens
... Other scenes
          </Scene>
        </Scene>
      </Router>

Expected behaviour

Nav Bar should appear after the initial Splash and Login Screens

Actual behaviour

Nav Bar never appears if I have 2 successive screens with hideNavBar='true'

Steps to reproduce

  1. Implement the code as above
  2. Nav Bar on 3rd screen (mainScreen) does not appear.
  3. Remove hideNavBar = true from the Login Scene
  4. Everything works as per normal

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions