2026-07-19 06:00:45 +05:00
|
|
|
import { Stack } from 'expo-router'
|
|
|
|
|
import { StatusBar } from 'expo-status-bar'
|
|
|
|
|
import { SafeAreaProvider } from 'react-native-safe-area-context'
|
|
|
|
|
import { GestureHandlerRootView } from 'react-native-gesture-handler'
|
|
|
|
|
import { AuthProvider } from '../src/lib/AuthContext'
|
|
|
|
|
import { colors } from '../src/lib/theme'
|
|
|
|
|
|
|
|
|
|
export default function RootLayout() {
|
|
|
|
|
return (
|
|
|
|
|
<GestureHandlerRootView style={{ flex: 1, backgroundColor: colors.background }}>
|
|
|
|
|
<SafeAreaProvider>
|
|
|
|
|
<AuthProvider>
|
|
|
|
|
<StatusBar style="light" />
|
|
|
|
|
<Stack screenOptions={{ headerShown: false, contentStyle: { backgroundColor: colors.background } }}>
|
|
|
|
|
<Stack.Screen name="(tabs)" />
|
2026-07-19 06:25:02 +05:00
|
|
|
<Stack.Screen
|
|
|
|
|
name="title/[id]"
|
|
|
|
|
options={{
|
|
|
|
|
presentation: 'card',
|
|
|
|
|
headerShown: true,
|
|
|
|
|
headerTitle: '',
|
|
|
|
|
headerBackTitle: '',
|
|
|
|
|
headerStyle: { backgroundColor: colors.background },
|
|
|
|
|
headerTintColor: colors.text,
|
|
|
|
|
headerShadowVisible: false,
|
|
|
|
|
}}
|
|
|
|
|
/>
|
2026-07-19 06:00:45 +05:00
|
|
|
<Stack.Screen name="login" options={{ presentation: 'modal' }} />
|
|
|
|
|
</Stack>
|
|
|
|
|
</AuthProvider>
|
|
|
|
|
</SafeAreaProvider>
|
|
|
|
|
</GestureHandlerRootView>
|
|
|
|
|
)
|
|
|
|
|
}
|