traintrape-moi/client/app/_layout.tsx

11 lines
371 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'
export default function RootLayout() {
const colorScheme = useColorScheme()
return <ThemeProvider value={colorScheme === 'dark' ? DarkTheme : DefaultTheme}>
<Stack />
</ThemeProvider>
}