16 lines
568 B
TypeScript
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>
|
|
}
|