Skip to content

Instantly share code, notes, and snippets.

@warodri-sendbird
Created September 2, 2021 14:58
Show Gist options
  • Save warodri-sendbird/6be5418dea0d8c81625c4024dba8b9ec to your computer and use it in GitHub Desktop.
Save warodri-sendbird/6be5418dea0d8c81625c4024dba8b9ec to your computer and use it in GitHub Desktop.
return (
<NavigationContainer>
<AppContext.Provider value={initialState}>
<Stack.Navigator>
<Stack.Screen name="Lobby" component={Lobby} options={{ ...defaultHeaderOptions }} />
<Stack.Screen name="Chat" component={Chat} options={{ ...defaultHeaderOptions }} />
<Stack.Screen name="Member" component={Member} options={{ ...defaultHeaderOptions }} />
<Stack.Screen name="Invite" component={Invite} options={{ ...defaultHeaderOptions }} />
<Stack.Screen name="Profile" component={Profile} options={{ ...defaultHeaderOptions }} />
</Stack.Navigator>
</AppContext.Provider>
</NavigationContainer>
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment