diff options
Diffstat (limited to 'src/App.native.tsx')
-rw-r--r-- | src/App.native.tsx | 6 |
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 |