Skip to content

Getting currentRoute inside of Tab Route returns parent Route #133

Closed
@ramilushev

Description

@ramilushev

Example:

<Router hideNavBar={true}>

            <Schema name="default" sceneConfig={Navigator.SceneConfigs.FloatFromRight} />
            <Schema name="tab" type="switch" icon={TabIcon} hideNavBar={true} />
            <Schema name="modal" sceneConfig={Navigator.SceneConfigs.FloatFromBottomAndroid} />



            <Route name="login" component={LoginWrapper} title="Login" initial={true} />
            <Route name="content">
                <Router footer={TabBar} hideNavBar={true}>
                    <Route name="stream" title="stream" component={StreamNavigator} schema="tab" initial={true}/>
                    <Route name="popular" title="popular" component={PopularContainer} schema="tab"/>
                    <Route name="notifications" title="notifications" component={NotificationsContainer} schema="tab" />
                    <Route name="user" title="user" component={UserContainer} schema="tab" />
                </Router>
            </Route>
        </Router>

When I navigate to "stream" via the TabBar, and then call Actions.currentRouter.currentRoute it returns content instead of stream

Any ideas?

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions