Login Ready, changing app name
This commit is contained in:
@@ -33,7 +33,10 @@ let Feed = ({ navigation, route }) => {
|
||||
console.log("Render Feed");
|
||||
useEffect(async () => {
|
||||
let loggedIn = await API.isLoggedIn();
|
||||
if(!loggedIn) return navigation.navigate('Login');
|
||||
if(!loggedIn) return navigation.reset({
|
||||
index: 0,
|
||||
routes: [{ name: 'Login' }],
|
||||
});
|
||||
if (route.params && route.params.profileid) {
|
||||
navigation.navigate('Profile', { profileid: route.params.profileid })
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user