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/bda7e255074630c62fdf to your computer and use it in GitHub Desktop.
Save spencercarli/bda7e255074630c62fdf to your computer and use it in GitHub Desktop.
Setup the React Native App - signOut.js
// 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