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

One NavBar only for grouped Scenes #2375

Closed
ghost opened this issue Sep 12, 2017 · 3 comments
Closed

One NavBar only for grouped Scenes #2375

ghost opened this issue Sep 12, 2017 · 3 comments

Comments

@ghost
Copy link

ghost commented Sep 12, 2017

Can someone tell me how to have one navBar Only if I want to group Scenes like below. It is so basic requirements that I can't figure out.
Instead of one NavBar I see two . Version 4.0.0-beta.21",

<Router>
            <Scene>
                <Stack >
                    <Scene key="login" component={LoginForm} title="Please Login"/>
                </Stack>
                <Stack>
                    <Scene key="employeeCreate" component={EmployeeCreate} title="Create Employee"/>
                </Stack>
            </Scene>
       </Router>

hideNavBar prop hides all navBars but I need one

@joel611
Copy link

joel611 commented Sep 15, 2017

I have experience same problem on my project that the screen show 2 nav bars. I guess one of the nav bar is from parent scene.

  1. Add hideNavBar to root Scene.
  2. Add hideNavBar={false} to the scene require nav bar.

@joel611
Copy link

joel611 commented Sep 15, 2017

Check out where the api said.
Stack:
A component to group Scenes together for its own stack based navigation. Using this will create a separate havigator for this stack, so expect two navbars to appear unless you add hideNavBar.

@ghost
Copy link
Author

ghost commented Sep 18, 2017

@joel611 Thanks. That worked out.

This issue was closed.
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

1 participant