Created
March 9, 2016 01:36
-
-
Save spencercarli/d692eae7b338464dd316 to your computer and use it in GitHub Desktop.
Setup the React Native App - signIn.js prt 2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// RNApp/app/containers/signIn.js | |
import { GoogleSignin } from 'react-native-google-signin'; | |
/* | |
Removed for brevity | |
*/ | |
handleGoogleSignIn() { | |
GoogleSignin.signIn() | |
.then((user) => { | |
console.log(user); | |
}) | |
.catch((err) => { | |
this.setState({error: err.message}); | |
}) | |
.done(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment