Skip to content

Header works only for the first Router level #112

@yarax

Description

@yarax

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

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