You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
740 B
24 lines
740 B
import { DarkTheme, DefaultTheme, ThemeProvider } from '@react-navigation/native'; |
|
import { Stack } from 'expo-router'; |
|
import { StatusBar } from 'expo-status-bar'; |
|
import 'react-native-reanimated'; |
|
|
|
import { useColorScheme } from '@/hooks/use-color-scheme'; |
|
|
|
export const unstable_settings = { |
|
anchor: '(tabs)', |
|
}; |
|
|
|
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="modal" options={{ presentation: 'modal', title: 'Modal' }} /> |
|
</Stack> |
|
<StatusBar style="auto" /> |
|
</ThemeProvider> |
|
); |
|
}
|
|
|