Ребят,подскажите пожалуйста, почему при нажатии на кнопку, никакой реакции?
signInWithGoogleAsync = async () => {
try {
const result = await Expo.Google.logInAsync({
androidClientId: 'ID',
behavior: 'web',
scopes: ['profile', 'email']
});
if (result.type === 'success') {
this.onSignIn(result);
return result.accessToken;
} else {
return { cancelled: true };
}
} catch (e) {
return { error: true };
}
};
render() {
return (
<View style={styles.container}>
<Button
title="Sign In With Google"
onPress={() => this.signInWithGoogleAsync()}
/>
</View>
);
}
}