React-native-router-flux: One NavBar only for grouped Scenes

Created on 12 Sep 2017  路  3Comments  路  Source: aksonov/react-native-router-flux

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

Most helpful comment

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.

All 3 comments

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.

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.

@joel611 Thanks. That worked out.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

maphongba008 picture maphongba008  路  3Comments

sreejithr picture sreejithr  路  3Comments

jgibbons picture jgibbons  路  3Comments

wootwoot1234 picture wootwoot1234  路  3Comments

llgoer picture llgoer  路  3Comments