-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Closed
Description
Hi!
I have 2 different screens and each of them has its own header. So I'm trying to create new Router for each of them, setting header attribute on it.
<Router hideNavBar={true}>
<Schema name="modal" sceneConfig={Navigator.SceneConfigs.FloatFromBottom}/>
<Schema name="default" sceneConfig={Navigator.SceneConfigs.FloatFromRight}/>
<Schema name="withoutAnimation"/>
<Route name="loginModal" type="switch" hideNavBar={false} header={ModalHeader} component={NewCategory} title="New" schema="default"/>
<Route name="home" component={Home} schema="default" initial={true}>
<Router header={HomeHeader} hideNavBar={true}>
<Route name="innerHome" schema="default"/>
</Router>
</Route>
</Router>
But header is empty.
If I put header attribute to the root Router everything works, but now it's shown for every screen the same.
Metadata
Metadata
Assignees
Labels
No labels