Created
March 9, 2016 01:37
-
-
Save spencercarli/310b427a6058185aaf72 to your computer and use it in GitHub Desktop.
Setup the React Native App - signIn.js prt 4
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 | |
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