Skip to content

Instantly share code, notes, and snippets.

@spencercarli
Created March 9, 2016 01:37
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/310b427a6058185aaf72 to your computer and use it in GitHub Desktop.
Save spencercarli/310b427a6058185aaf72 to your computer and use it in GitHub Desktop.
Setup the React Native App - signIn.js prt 4
// RNApp/app/containers/signIn.js
handleDDPSignIn(googleUser) {
if (googleUser) {
this.props.changedSignedIn(true);
}
}
/*
Removed for brevity
*/
handleGoogleSignIn() {
GoogleSignin.signIn()
.then((user) => {
this.handleDDPSignIn(user); // Change this line
})
.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