|
|
@ -39,11 +39,6 @@ const App = () => { |
|
|
|
|
|
|
|
|
|
|
|
const onLayoutRootView = React.useCallback(async () => { |
|
|
|
const onLayoutRootView = React.useCallback(async () => { |
|
|
|
if (fontsLoaded) { |
|
|
|
if (fontsLoaded) { |
|
|
|
// This tells the splash screen to hide immediately! If we call this after
|
|
|
|
|
|
|
|
// `setAppIsReady`, then we may see a blank screen while the app is
|
|
|
|
|
|
|
|
// loading its initial state and rendering its first pixels. So instead,
|
|
|
|
|
|
|
|
// we hide the splash screen once we know the root view has already
|
|
|
|
|
|
|
|
// performed layout.
|
|
|
|
|
|
|
|
await SplashScreen.hideAsync(); |
|
|
|
await SplashScreen.hideAsync(); |
|
|
|
} |
|
|
|
} |
|
|
|
}, [fontsLoaded]); |
|
|
|
}, [fontsLoaded]); |
|
|
|