Skip to content

nested routes with same scene #750

@ms88privat

Description

@ms88privat

Version

Tell us which versions you are using (react native 0.26 is required for v3):

  • react-native-router-flux v3.26.0
  • react-native v0.26.2

Expected behaviour

The navigator should route to the UserView within its current tab. This was working with v2 and a similar route setup.

Actual behaviour

The navigator routes always to the UserView in the last tab defined.

Steps to reproduce

/* <Scene key='modal' component={Modal} > */
/* <Scene key='root' > */
<Scene key='homeView' tabs>
  <Scene key='addTab' title='create' icon={TabIconComponent}>
     <Scene key='add' component={CreateTabView} title='Create' />
     <Scene key='user' component={UserView} title='User' />
   </Scene>
   <Scene key='peopleTab' title='people' icon={TabIconComponent}>
      <Scene key='people' component={PeopleContainer} title='People'  />
      <Scene key='user' component={UserView} title='User' />
    </Scene>
</Scene>

Actions.add() -> Actions.user() => now we are in peopleTab -> user instead of addTab -> user

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