Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
render() {
const RootNavigator = createRootNavigator(this.state.isAuthenticated);
const AppContainer = createAppContainer(RootNavigator);
return (
<AuthContext.Provider
value={{
isAuthenticated: this.state.isAuthenticated,
setAuthenticated: this.setAuthenticated
}}
>
<AppContainer />
</AuthContext.Provider>
);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.