Commit eb01e000 by G

wrapped the main navigator with a component that will take the current auth…

wrapped the main navigator with a component that will take the current auth status and pass in to the navigation component so that it does not rerender until the state has changed
parent 71538c5b
import { ModalsManagerProvider } from "@/contexts/ModalsManagerContext"; import { ModalsManagerProvider } from "@/contexts/ModalsManagerContext";
import { UserAuthenticationContextProvider } from "@/contexts/UserAuthenticationContext"; import { UserAuthenticationContextProvider } from "@/contexts/UserAuthenticationContext";
import AppMainStackNavigator from "@/navigations/AppMainStackNavigator"; import { AppMainStackNavigatorAuthWrapper } from "@/navigations/AppMainStackNavigator";
import theme from "@/themes/Theme"; import theme from "@/themes/Theme";
import ProvideQueryClient from "@components/providers_wrappers/ProvideQueryClient"; import ProvideQueryClient from "@components/providers_wrappers/ProvideQueryClient";
import { LOG } from "@logger"; import { LOG } from "@logger";
...@@ -23,13 +23,7 @@ export default function App() { ...@@ -23,13 +23,7 @@ export default function App() {
<ProvideQueryClient> <ProvideQueryClient>
<UserAuthenticationContextProvider> <UserAuthenticationContextProvider>
<NavigationContainer> <NavigationContainer>
{/* <View style={styles.container}> */} <AppMainStackNavigatorAuthWrapper />
{/* <SafeAreaProvider>
<StatusBar style="auto" />
<UserLoginScreen />
</SafeAreaProvider> */}
<AppMainStackNavigator />
{/* </View> */}
</NavigationContainer> </NavigationContainer>
</UserAuthenticationContextProvider> </UserAuthenticationContextProvider>
</ProvideQueryClient> </ProvideQueryClient>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment