diff options
author | Paul Frazee <pfrazee@gmail.com> | 2022-11-23 15:04:44 -0600 |
---|---|---|
committer | Paul Frazee <pfrazee@gmail.com> | 2022-11-23 15:04:44 -0600 |
commit | 810fcf99105016f5f55647d326909736c3641702 (patch) | |
tree | be4a46a0e0dccbb6c2dff47afacb0fced646e4b8 /src/App.native.tsx | |
parent | 4eb8bc1249ccf6afaa0c77695057a13379cf1aa1 (diff) | |
download | voidsky-810fcf99105016f5f55647d326909736c3641702.tar.zst |
Remove webcrypto polyfill, as it's no longer needed
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 |