about summary refs log tree commit diff
path: root/src/App.native.tsx
diff options
context:
space:
mode:
authorPaul Frazee <pfrazee@gmail.com>2022-11-05 14:52:44 -0500
committerPaul Frazee <pfrazee@gmail.com>2022-11-05 14:52:44 -0500
commit541717d4673d8d95e3cc53da24862b9aaabde24b (patch)
tree3f495ad2f155de5dedfd79270f20e87676798a41 /src/App.native.tsx
parent2377431901b3275a34e9296bb9852db117833289 (diff)
downloadvoidsky-541717d4673d8d95e3cc53da24862b9aaabde24b.tar.zst
Add splash screen to ios
Diffstat (limited to 'src/App.native.tsx')
-rw-r--r--src/App.native.tsx6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/App.native.tsx b/src/App.native.tsx
index a220fab3b..e6be77225 100644
--- a/src/App.native.tsx
+++ b/src/App.native.tsx
@@ -2,6 +2,7 @@ import 'react-native-url-polyfill/auto'
 import React, {useState, useEffect} from 'react'
 import {RootSiblingParent} from 'react-native-root-siblings'
 import {GestureHandlerRootView} from 'react-native-gesture-handler'
+import SplashScreen from 'react-native-splash-screen'
 import {whenWebCrypto} from './platform/polyfills.native'
 import * as view from './view/index'
 import {RootStoreModel, setupState, RootStoreProvider} from './state'
@@ -19,7 +20,10 @@ function App() {
         view.setup()
         return setupState()
       })
-      .then(setRootStore)
+      .then(store => {
+        setRootStore(store)
+        SplashScreen.hide()
+      })
   }, [])
 
   // show nothing prior to init