traintrape-moi/client/app/_layout.tsx

16 lines
568 B
TypeScript
Raw Normal View History

2024-12-01 11:29:47 +00:00
import { DarkTheme, DefaultTheme, ThemeProvider } from '@react-navigation/native'
import { Stack } from "expo-router"
import { useColorScheme } from '@/hooks/useColorScheme'
import { StatusBar } from 'expo-status-bar'
2024-12-01 11:29:47 +00:00
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" />
2024-12-01 11:29:47 +00:00
</ThemeProvider>
}