traintrape-moi/client/app/_layout.tsx
Emmy D'Anello 49fcb6edbc
Structure globale de l'application client
Signed-off-by: Emmy D'Anello <emmy@luemy.eu>
2024-12-01 18:59:11 +01:00

16 lines
568 B
TypeScript

import { DarkTheme, DefaultTheme, ThemeProvider } from '@react-navigation/native'
import { Stack } from "expo-router"
import { useColorScheme } from '@/hooks/useColorScheme'
import { StatusBar } from 'expo-status-bar'
export default function RootLayout() {
const colorScheme = useColorScheme()
return <ThemeProvider value={colorScheme === 'dark' ? DarkTheme : DefaultTheme}>
<Stack>
<Stack.Screen name="(tabs)" options={{ headerShown: false }} />
<Stack.Screen name="+not-found" />
</Stack>
<StatusBar style="auto" />
</ThemeProvider>
}