Created
March 9, 2016 01:37
-
-
Save spencercarli/bda7e255074630c62fdf to your computer and use it in GitHub Desktop.
Setup the React Native App - signOut.js
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/signOut.js | |
import { GoogleSignin } from 'react-native-google-signin'; | |
/* | |
Removed for brevity | |
*/ | |
handleSignOut() { | |
// ddpClient.logout(() => { | |
// this.props.changedSignedIn(false); | |
// }); | |
GoogleSignin.signOut() | |
.then(() => { | |
console.log('google sign out'); | |
this.props.changedSignedIn(false); | |
}) | |
.catch((err) => { | |
console.log('google sign out error', err); | |
}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment