Remove webcrypto polyfill, as it's no longer needed

This commit is contained in:
Paul Frazee 2022-11-23 15:04:44 -06:00
parent 4eb8bc1249
commit 810fcf9910
11 changed files with 11 additions and 10364 deletions

View file

@ -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