()
| 48 | }; |
| 49 | |
| 50 | export const App = () => { |
| 51 | const { isLoggedIn } = useIterableApp(); |
| 52 | |
| 53 | useEffect(() => { |
| 54 | requestNotificationPermission(); |
| 55 | }, []); |
| 56 | |
| 57 | return ( |
| 58 | <Stack.Navigator> |
| 59 | {isLoggedIn ? ( |
| 60 | <Stack.Screen |
| 61 | name={Route.Main} |
| 62 | component={Main} |
| 63 | options={{ headerShown: false }} |
| 64 | /> |
| 65 | ) : ( |
| 66 | <Stack.Screen |
| 67 | name={Route.Login} |
| 68 | component={Login} |
| 69 | options={{ headerShown: false }} |
| 70 | /> |
| 71 | )} |
| 72 | </Stack.Navigator> |
| 73 | ); |
| 74 | }; |
| 75 | |
| 76 | export default App; |
nothing calls this directly
no test coverage detected