Call a Sub-scene in React Native Router Flux without calling an Initial sub-scene -
i have 2 sub scene in react-native-router-flux
router like
<router> <scene key="root" ... > <scene key="login" ... /> <scene key="parent" component={drawer}> <scene key="page1" ... /> <scene key="page2" ... /> </scene> </scene> </router>
now, i'm in login scene. if want call page2
, i'm using following snippet.
actions.parent() actions.page2()
it working. but, before rendering page2
executing page1
also, since initial element. how open page2
without executing page1
?
thanks in advance,
try -
import { actions, actionconst } 'react-native-router-flux'; <button onpress={() => { actions.parent({type:actionconst.reset}); actions.page2(); }}>
Comments
Post a Comment