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 { UserAuthenticationContextProvider } from "@/contexts/UserAuthenticationContext";
import AppMainStackNavigator from "@/navigations/AppMainStackNavigator";
import { AppMainStackNavigatorAuthWrapper } from "@/navigations/AppMainStackNavigator";
import theme from "@/themes/Theme";
import ProvideQueryClient from "@components/providers_wrappers/ProvideQueryClient";
import { LOG } from "@logger";
......@@ -23,13 +23,7 @@ export default function App() {
<ProvideQueryClient>
<UserAuthenticationContextProvider>
<NavigationContainer>
{/* <View style={styles.container}> */}
{/* <SafeAreaProvider>
<StatusBar style="auto" />
<UserLoginScreen />
</SafeAreaProvider> */}
<AppMainStackNavigator />
{/* </View> */}
<AppMainStackNavigatorAuthWrapper />
</NavigationContainer>
</UserAuthenticationContextProvider>
</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