Tell us which versions you are using:
Pops all scenes and and pushes new scene in argument. This works up until beta 11.
Does nothing
Actions.popTo('launch') and this is called from a route inside a tab bar.
-routes.js
<Scene key="root" {...sceneConfig} hideNavBar={true} style={{backgroundColor: 'white'}} >
<Scene key="launch"{...sceneConfig} component={InitialScreen} initial hideNavBar style={{ backgroundColor:'white'}}/>
<Scene key="login" {...sceneConfig} cardStyle={{backgroundColor: 'white'}} component={Login} title="Login" duration={1}/>
<Scene key="register" {...sceneConfig}component={Register} duration={1}/>
</Scene>
var sceneConfig = {
cardStyle: {
backgrouwndColor: 'white'
},
labelStyle: {
fontFamily: 'open-sans',
},
activeTintColor: '#de1d3e',
inactiveTintColor: 'gray',
navBarTintColor: 'red',
}
Is there a new function that needs to be called in the newer versions for this to work?
Thanks, should be fixed now. Please check latest master (Example Login3 page contains popTo)
Ty, it works now. I love how much you care about this library and how fast you fix issues.
Actions.popTo works fine,
Use it as Actions.popTo("sceneName");
Version:
"react": "16.0.0",
"react-native": "^0.51.0",
"react-native-router-flux": "^4.0.0-beta.28",
@HemantRMali and @aksonov I'm on
"react": "16.2.0",
"react-native": "0.53.0",
"react-native-router-flux": "^4.0.0-beta.28"
And popTo is still broken. Trying to use it crashes navigation for the entire app.
I'm calling it from a TabIcon
Sorry, beta.28 is fully experimental and should not be used (some developers asked to publish to fix react-navigation 1.x issues)
On 7 May 2018, at 02:10, Dave Padovano notifications@github.com wrote:
nvm ... beta.28 is missing from the repo release but was submitted to npm.
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub https://github.com/aksonov/react-native-router-flux/issues/2163#issuecomment-386927398, or mute the thread https://github.com/notifications/unsubscribe-auth/ABQpccoVuUwCARCiPVutM-KROP8tCPyJks5tv5DxgaJpZM4OqWZ-.