init
This commit is contained in:
18
app/_layout.tsx
Normal file
18
app/_layout.tsx
Normal file
@@ -0,0 +1,18 @@
|
||||
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>
|
||||
);
|
||||
}
|
||||
5
app/driver.tsx
Normal file
5
app/driver.tsx
Normal file
@@ -0,0 +1,5 @@
|
||||
import { KioskApp } from '@/app';
|
||||
|
||||
export default function DriverScreen() {
|
||||
return <KioskApp />;
|
||||
}
|
||||
1
app/drivers.tsx
Normal file
1
app/drivers.tsx
Normal file
@@ -0,0 +1 @@
|
||||
export { DriversPage as default } from '@/pages/drivers';
|
||||
5
app/index.tsx
Normal file
5
app/index.tsx
Normal file
@@ -0,0 +1,5 @@
|
||||
import { Redirect } from 'expo-router';
|
||||
|
||||
export default function Index() {
|
||||
return <Redirect href="/driver" />;
|
||||
}
|
||||
Reference in New Issue
Block a user