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'
|
2024-12-01 17:58:53 +00:00
|
|
|
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}>
|
2024-12-01 17:58:53 +00:00
|
|
|
<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>
|
|
|
|
}
|