liupeixin
liupeixin

Reputation: 738

How to directly go to the non-first scene of the sibling scene in React Native with react-native-router-flux

In the following code snippet, how to directly go to completeInfo from login without executing the home?

Thanks.

<Scene key="root">
    <Scene key="loginScene">
        <Scene key="login" component={Login} initial={true}/>
        <Scene key="register" component={Register}/>
    </Scene>
    <Scene key="homeScene">
        <Scene key="home" component={Home}/>
        <Scene key="completeInfo" component={CompleteInfo}/>
    </Scene>
</Scene>

Upvotes: 0

Views: 153

Answers (1)

binchik
binchik

Reputation: 919

Add clone={true} prop to completeInfo scene, then you can directly push it.

Upvotes: 1

Related Questions