From 541717d4673d8d95e3cc53da24862b9aaabde24b Mon Sep 17 00:00:00 2001
From: Paul Frazee <pfrazee@gmail.com>
Date: Sat, 5 Nov 2022 14:52:44 -0500
Subject: Add splash screen to ios

---
 src/App.native.tsx | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

(limited to 'src/App.native.tsx')

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
-- 
cgit 1.4.1

