React-native-router-flux: Actions.popTo not working with beta 15 and above

Created on 1 Aug 2017  Â·  5Comments  Â·  Source: aksonov/react-native-router-flux

Version

Tell us which versions you are using:

  • react-native-router-flux v4.0.0.beta15 (v3 is not supported)
  • react-native v0.45.1

Expected behaviour

Pops all scenes and and pushes new scene in argument. This works up until beta 11.

Actual behaviour

Does nothing

Steps to reproduce

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?

bug

All 5 comments

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-.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

wootwoot1234 picture wootwoot1234  Â·  3Comments

sarovin picture sarovin  Â·  3Comments

sylvainbaronnet picture sylvainbaronnet  Â·  3Comments

jgibbons picture jgibbons  Â·  3Comments

maphongba008 picture maphongba008  Â·  3Comments