- Add required web dependencies (react-dom, react-native-web) - Add navigation dependencies (react-native-safe-area-context, react-native-screens) - Fix StatusBar prop (barStyle -> style) in root layout - Fix animation property in auth layout (animationEnabled -> animation) - Add placeholder assets for app icons and splash screen - Auto-generated tsconfig.json from Expo
23 lines
539 B
TypeScript
23 lines
539 B
TypeScript
import { Stack } from 'expo-router';
|
|
import { StatusBar } from 'expo-status-bar';
|
|
import { useEffect } from 'react';
|
|
|
|
export const unstable_settings = {
|
|
initialRouteName: '(tabs)',
|
|
};
|
|
|
|
export default function RootLayout() {
|
|
useEffect(() => {
|
|
// Setup any global configuration here
|
|
}, []);
|
|
|
|
return (
|
|
<>
|
|
<StatusBar style="dark" />
|
|
<Stack>
|
|
<Stack.Screen name="(tabs)" options={{ headerShown: false }} />
|
|
<Stack.Screen name="(auth)" options={{ headerShown: false }} />
|
|
</Stack>
|
|
</>
|
|
);
|
|
}
|