Browse Source

Navigating to Home when user logout

master
GabrielTrettel 3 years ago
parent
commit
9b2de541d0
  1. 4
      src/app/screens/AccountScreen.js

4
src/app/screens/AccountScreen.js

@ -79,7 +79,9 @@ function AccountScreen(props) {
console.log(user);
const logout = () => {
setUser(null);
setShowLog(false)
setUser(true);
props.navigation.navigate("Home")
authStorage.removeToken();
authStorage.removeUser();
};

Loading…
Cancel
Save