React native Wix Navigation.push possible unhandled promise rejection : Error : Échec de l'exécution de la commande de la pile.
Login.js
signUpLink =(screenName) => {
Navigation.push(this.props.componentId, {
component: {
name: screenName,
}
});
}
<TouchableOpacity style={styles.buttonText} onPress={this.signUpLink('videostreme.SignUpScreen')}>
<Text style={styles.signUpText} >First time here?? Sign Up</Text>
</TouchableOpacity>
index.js
Navigation.registerComponent('videostreme.LoginScreen', () => Login);
Navigation.registerComponent('videostreme.MainScreen', () => Main);
Navigation.registerComponent('videostreme.SignUpScreen', () => SignUp);
Navigation.registerComponent('videostreme.SplashScreen', () => Splash);
Navigation.events().registerAppLaunchedListener(() => {
Navigation.setRoot({
root: {
stack: {
children: [
{
component: {
name: 'videostreme.MainScreen'
}
},
]
}
}
})
})
Comment gérer cette promesse (Navigation.push), quelqu'un a-t-il une idée à ce sujet ?