-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Closed
Description
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
Labels
No labels