The reaction-based application checks the local storage for the authentication token, and if the token is available, the application will move around the main page, but when you try to call, the this.props.navigator.push
application will work. This only happens when the application starts cold (it works as expected when it starts from the background)
AsyncStorageHelper.getUserToken().then((userToken)=>{
if (userToken !== null) {
this.props.navigator.push({
component: MainPage
});
} else {
this.showLoginControls();
}
})
The following code is called in componentDidMount()
Method
Edit
Also note that the application crashes only in the release version. Therefore, it is not possible to get a stack trace for failure.
source
share