Initial commit of template
This commit is contained in:
20
app/_layout.tsx
Normal file
20
app/_layout.tsx
Normal file
@@ -0,0 +1,20 @@
|
||||
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>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user