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