Skip to content

Instantly share code, notes, and snippets.

@spencercarli
Created March 9, 2016 01:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save spencercarli/d692eae7b338464dd316 to your computer and use it in GitHub Desktop.
Save spencercarli/d692eae7b338464dd316 to your computer and use it in GitHub Desktop.
Setup the React Native App - signIn.js prt 2
// 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