-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
08a0a86
commit 8a9bf6c
Showing
21 changed files
with
19,272 additions
and
644 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
|
||
# @generated expo-cli sync-2b81b286409207a5da26e14c78851eb30d8ccbdb | ||
# The following patterns were generated by expo-cli | ||
|
||
expo-env.d.ts | ||
# @end expo-cli |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,37 +1,5 @@ | ||
import { DarkTheme, DefaultTheme, ThemeProvider } from '@react-navigation/native'; | ||
import { useFonts } from 'expo-font'; | ||
import { Stack } from 'expo-router'; | ||
import * as SplashScreen from 'expo-splash-screen'; | ||
import { useEffect } from 'react'; | ||
import 'react-native-reanimated'; | ||
|
||
import { useColorScheme } from '@/hooks/useColorScheme'; | ||
|
||
// Prevent the splash screen from auto-hiding before asset loading is complete. | ||
SplashScreen.preventAutoHideAsync(); | ||
|
||
import React from 'react'; | ||
import App from '../src/App'; | ||
export default function RootLayout() { | ||
const colorScheme = useColorScheme(); | ||
const [loaded] = useFonts({ | ||
SpaceMono: require('../assets/fonts/SpaceMono-Regular.ttf'), | ||
}); | ||
|
||
useEffect(() => { | ||
if (loaded) { | ||
SplashScreen.hideAsync(); | ||
} | ||
}, [loaded]); | ||
|
||
if (!loaded) { | ||
return null; | ||
} | ||
|
||
return ( | ||
<ThemeProvider value={colorScheme === 'dark' ? DarkTheme : DefaultTheme}> | ||
<Stack> | ||
<Stack.Screen name="(tabs)" options={{ headerShown: false }} /> | ||
<Stack.Screen name="+not-found" /> | ||
</Stack> | ||
</ThemeProvider> | ||
); | ||
return <App />; | ||
} |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.