MCPcopy Create free account
hub / github.com/Iterable/react-native-sdk / App

Function App

example/src/components/App/App.tsx:50–74  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

48};
49
50export 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
76export default App;

Callers

nothing calls this directly

Calls 2

useIterableAppFunction · 0.90

Tested by

no test coverage detected