Login Ready, changing app name
This commit is contained in:
5
App.js
5
App.js
@@ -82,7 +82,8 @@ const MainNavigation = () => {
|
||||
useEffect(() => {
|
||||
registerForPushNotificationsAsync().then(async (token) => {
|
||||
let isLoggedIn = await API.isLoggedIn();
|
||||
if (isLoggedIn) API.registerToken(token);
|
||||
if (!isLoggedIn) return false;
|
||||
API.registerToken(token);
|
||||
return setExpoPushToken(token);
|
||||
});
|
||||
|
||||
@@ -195,7 +196,7 @@ export default function App() {
|
||||
<NavigationContainer>
|
||||
<Stack.Navigator>
|
||||
<Stack.Screen
|
||||
name="EMI Social"
|
||||
name="MainNavigation"
|
||||
component={MainNavigation}
|
||||
options={{ headerShown: true }}
|
||||
/>
|
||||
|
||||
Reference in New Issue
Block a user