Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issues pushing new scene after upgrading from beta8 to beta 15 #2162

Closed
d7laungani opened this issue Aug 1, 2017 · 1 comment
Closed

Issues pushing new scene after upgrading from beta8 to beta 15 #2162

d7laungani opened this issue Aug 1, 2017 · 1 comment

Comments

@d7laungani
Copy link

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

Should push to new scene

Actual behaviour

Does nothing and the action taken place is "
REACT_NATIVE_ROUTER_FLUX_PUSH"

Steps to reproduce

For non-obvious bugs, please fork this component, modify Example project to reproduce your issue and include link here.

Note: This code worked correctly on react-native-router-flux v4.0.0.beta8

<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',
}
       

Buttons used to get to Scene:

<Button style={styles.clickButton} textStyle={styles.buttonTextStyle} onPress={() => Actions.login()}>
                    Log In
                </Button>
                <Button  style={styles.clickButton} textStyle={styles.buttonTextStyle} onPress={() => Actions.register()}>
                    Sign Up
                </Button>

@d7laungani
Copy link
Author

Had to remove node modules and restart package manager. Sorry for stupid issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant