Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unexpected header behavior in TabNavigation #2277

Closed
EnriqueDev opened this issue Aug 22, 2017 · 1 comment
Closed

Unexpected header behavior in TabNavigation #2277

EnriqueDev opened this issue Aug 22, 2017 · 1 comment

Comments

@EnriqueDev
Copy link

Version

Tell us which versions you are using:

  • react-native-router-flux v4.0.0-beta.12
  • react-native v0.47

Expected behaviour

When declaring a tab navigator I would like all the tabs to share the same header, so I guessed the proper way to do this would be:

<Scene key="ComponentLessScene" tabs swipeEnabled={true}>
    <Scene
         key="cs1"
         hideNavBar
         component={ComponentScene1} />
    <Scene
          key="cs2"
          hideNavBar
          component={ComponentScene2} />
</Scene> 

And so, the expected behaviour would be something like:

simulator screen shot 22 ago 2017 11 57 11

Actual behaviour

Instead what happens is this:

simulator screen shot 22 ago 2017 12 03 47

@aksonov
Copy link
Owner

aksonov commented Aug 23, 2017

You must add 'hideNavBar' for 'tabs' Scene to hide upper navbar.

@aksonov aksonov closed this as completed Aug 23, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants