diff options
Diffstat (limited to 'src/App.native.tsx')
-rw-r--r-- | src/App.native.tsx | 27 |
1 files changed, 11 insertions, 16 deletions
diff --git a/src/App.native.tsx b/src/App.native.tsx index 65a77c3dc..a532a08d4 100644 --- a/src/App.native.tsx +++ b/src/App.native.tsx @@ -5,7 +5,6 @@ import {RootSiblingParent} from 'react-native-root-siblings' import {GestureHandlerRootView} from 'react-native-gesture-handler' import SplashScreen from 'react-native-splash-screen' import {SafeAreaProvider} from 'react-native-safe-area-context' -import {whenWebCrypto} from './platform/polyfills.native' import * as view from './view/index' import {RootStoreModel, setupState, RootStoreProvider} from './state' import {MobileShell} from './view/shell/mobile' @@ -17,23 +16,19 @@ function App() { // init useEffect(() => { - whenWebCrypto - .then(() => { - view.setup() - return setupState() - }) - .then(store => { - setRootStore(store) - SplashScreen.hide() - Linking.getInitialURL().then((url: string | null) => { - if (url) { - store.nav.handleLink(url) - } - }) - Linking.addEventListener('url', ({url}) => { + view.setup() + setupState().then(store => { + setRootStore(store) + SplashScreen.hide() + Linking.getInitialURL().then((url: string | null) => { + if (url) { store.nav.handleLink(url) - }) + } + }) + Linking.addEventListener('url', ({url}) => { + store.nav.handleLink(url) }) + }) }, []) // show nothing prior to init |