소스 검색

small splash fix

Viktoriia 1 년 전
부모
커밋
5ae08ad4ef
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      Route.tsx

+ 1 - 1
Route.tsx

@@ -102,7 +102,6 @@ const Route = () => {
       await openDatabases();
       setDbLoaded(true);
       setServerReady(true);
-      await setupDatabaseAndSync();
     };
 
     const findFastestServer = async () => {
@@ -121,6 +120,7 @@ const Route = () => {
     const hideSplashScreen = async () => {
       if (fontsLoaded && dbLoaded && serverReady) {
         await SplashScreen.hideAsync();
+        await setupDatabaseAndSync();
       }
     };