Commit 2e8bbc7f by G

wrapped by the context and using the all new navigation system.

parent cd9a9dc7
import { MyTabs } from "@/navigations/BottomTabs"; import { UserAuthenticationContextProvider } from "@/contexts/UserAuthenticationContext";
import UnloggedUserStackNavigation from "@/navigations/UnloggedUserStackNavigation";
import theme from "@/themes/Theme"; import theme from "@/themes/Theme";
import { NavigationContainer } from "@react-navigation/native"; import { NavigationContainer } from "@react-navigation/native";
import { ThemeProvider } from "@shopify/restyle"; import { ThemeProvider } from "@shopify/restyle";
...@@ -7,15 +8,17 @@ import { StyleSheet } from "react-native"; ...@@ -7,15 +8,17 @@ import { StyleSheet } from "react-native";
export default function App() { export default function App() {
return ( return (
<ThemeProvider theme={theme}> <ThemeProvider theme={theme}>
<UserAuthenticationContextProvider>
<NavigationContainer> <NavigationContainer>
{/* <View style={styles.container}> */} {/* <View style={styles.container}> */}
{/* <SafeAreaProvider> {/* <SafeAreaProvider>
<StatusBar style="auto" /> <StatusBar style="auto" />
<UserLoginScreen /> <UserLoginScreen />
</SafeAreaProvider> */} </SafeAreaProvider> */}
<MyTabs /> <UnloggedUserStackNavigation />
{/* </View> */} {/* </View> */}
</NavigationContainer> </NavigationContainer>
</UserAuthenticationContextProvider>
</ThemeProvider> </ThemeProvider>
); );
} }
...@@ -28,3 +31,5 @@ const styles = StyleSheet.create({ ...@@ -28,3 +31,5 @@ const styles = StyleSheet.create({
justifyContent: "center", justifyContent: "center",
}, },
}); });
const NavigatonRenderer = () => {};
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