19 lines
492 B
TypeScript
19 lines
492 B
TypeScript
import { Slot } from 'expo-router';
|
|
import * as SplashScreen from 'expo-splash-screen';
|
|
import { AppProviders, RouterErrorBoundary } from '@/app';
|
|
|
|
export { RouterErrorBoundary as ErrorBoundary };
|
|
|
|
const SPLASH_FALLBACK_TIMEOUT = 5000;
|
|
|
|
SplashScreen.preventAutoHideAsync().catch(() => {});
|
|
setTimeout(() => void SplashScreen.hideAsync().catch(() => {}), SPLASH_FALLBACK_TIMEOUT);
|
|
|
|
export default function RootLayout() {
|
|
return (
|
|
<AppProviders>
|
|
<Slot />
|
|
</AppProviders>
|
|
);
|
|
}
|