React Native中如何用react-native-router-flux直接跳到兄弟场景的非first场景
How to directly go to the non-first scene of the sibling scene in React Native with react-native-router-flux
在下面的代码片段中,如何在不执行home
的情况下直接从login
转到completeInfo
?
谢谢。
<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>
completeInfo场景添加clone={true}
prop,即可直接push
在下面的代码片段中,如何在不执行home
的情况下直接从login
转到completeInfo
?
谢谢。
<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>
completeInfo场景添加clone={true}
prop,即可直接push