fix(app): auto-hide splash screen on mount
This commit is contained in:
@@ -1,5 +1,6 @@
|
|||||||
import "./global.css";
|
import "./global.css";
|
||||||
import "./src/i18n";
|
import "./src/i18n";
|
||||||
|
import { useEffect } from "react";
|
||||||
import * as SplashScreen from "expo-splash-screen";
|
import * as SplashScreen from "expo-splash-screen";
|
||||||
import { StatusBar } from "expo-status-bar";
|
import { StatusBar } from "expo-status-bar";
|
||||||
import { NavigationContainer } from "@react-navigation/native";
|
import { NavigationContainer } from "@react-navigation/native";
|
||||||
@@ -30,6 +31,10 @@ function SystemLanguageListener() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function App() {
|
function App() {
|
||||||
|
useEffect(() => {
|
||||||
|
SplashScreen.hideAsync();
|
||||||
|
}, []);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<GestureHandlerRootView style={{ flex: 1 }}>
|
<GestureHandlerRootView style={{ flex: 1 }}>
|
||||||
<DatabaseProvider>
|
<DatabaseProvider>
|
||||||
|
|||||||
Reference in New Issue
Block a user