11 lines
371 B
TypeScript
11 lines
371 B
TypeScript
|
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>
|
||
|
}
|