Skip to content

NavBars won't "easily show/hide" (iOS 9.2) #80

@andreasbhansen

Description

@andreasbhansen

Hey,

I cannot get the NavBars to show/hide on only some specific views.

An example where I would assume that the "launchpage" view would have its navbar hidden (because the Router says so), but the "loginpage" view navbar would be visible, because it says so. However, the navbar is hidden on all views when the hideNavBar={true} is set on the Router:

<Router hideNavBar={true} initialRoutes={['launchpage']}>
  <Route name="launchpage" component={LaunchPage} type="reset"/>
  <Route name="loginpage" component={LoginPage} hideNavBar={false} title="Login" schema="default"/>
</Router>

So I tried to remove hideNavBar={true} from the router, and set place hideNavBar={false} on the "loginpage" view, but then the navbar is shown on all pages, not only the "loginpage":

<Router initialRoutes={['launchpage']}>
  <Route name="launchpage" component={LaunchPage} type="reset"/>
  <Route name="loginpage" component={LoginPage} hideNavBar={false} title="Login" schema="default"/>
</Router>

I've also tried the showNavigationBar={true}, but it doesn't help solving this either. Any ideas here?

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