joshjoe
05/23/2017, 6:04 PM_signInUser function I’m not seeing all of my commands execute. Here is what my _signInUser looks like _signInUser = async () => {
try {
const authenticationResult = await this.props.signInUserMutation({
variables: { email: this.state.email, password: this.state.password }
});
AsyncStorage.setItem('token', authenticationResult.data.signinUser.token);
this.props.navigation.navigate('Home');
//await AsyncStorage.setItem('token', authenticationResult.data.signinUser.token);
}
catch (error) {
console.log(error);
}
};nilan
05/23/2017, 8:14 PMjoshjoe
05/23/2017, 8:15 PMnilan
05/23/2017, 8:16 PMAsyncStorage.setItem does? is it a promise?joshjoe
05/23/2017, 8:19 PMnilan
05/23/2017, 8:23 PMjoshjoe
05/23/2017, 8:32 PMjoshjoe
05/23/2017, 8:33 PMjoshjoe
05/23/2017, 8:34 PM