Polyfills for native crypto

This commit is contained in:
Paul Frazee 2022-06-15 17:40:18 -05:00
parent b2dd8d4f44
commit 77b938845a
15 changed files with 243 additions and 81 deletions

View file

@ -1,4 +1,5 @@
import React, {useState, useEffect} from 'react'
import {whenWebCrypto} from './platform/polyfills.native'
import {RootStore, setupState, RootStoreProvider} from './state'
import * as Routes from './routes'
@ -7,7 +8,7 @@ function App() {
// init
useEffect(() => {
setupState().then(setRootStore)
whenWebCrypto.then(() => setupState()).then(setRootStore)
}, [])
// show nothing prior to init