Files
noah-template-mobile/app/_layout.tsx
2026-07-16 14:03:55 +05:30

21 lines
704 B
TypeScript

import { Stack } from 'expo-router';
import { StatusBar } from 'expo-status-bar';
import { GestureHandlerRootView } from 'react-native-gesture-handler';
import { Toaster } from 'sonner-native';
import { useFrameworkReady } from '@/hooks/useFrameworkReady';
export default function RootLayout() {
useFrameworkReady(); // Assuming this handles side effects
return (
<GestureHandlerRootView style={{ flex: 1 }}>
<Stack screenOptions={{ headerShown: false }}>
<Stack.Screen name="(tabs)" />
<Stack.Screen name="+not-found" options={{ headerShown: false }} />
</Stack>
<StatusBar style="auto" />
<Toaster theme="light" />
</GestureHandlerRootView>
);
}