Making a simple firebase auth app with react-native. Register/sign in works just fine, but I can't get the sign out to work properly.
loginUser = (email,password) => {
try{
firebase.auth().signInWithEmailAndPassword(email, password).then(function(user){
console.log(user)
})
}
catch(error){
console.log(error.toString())
}
}
signOutUser = () => firebase.auth.signOut();
The sign out button is easy as this:
<Button style={styles.button}
full
rounded
onPress={() => this.signOutUser()}
>