fix(mobile): issue with black screen on iOS (#1777)

This commit is contained in:
Mo
2022-10-11 09:08:34 -05:00
committed by GitHub
parent b80b04d374
commit 9fc77d861e
5 changed files with 12 additions and 6 deletions

View File

@@ -204,6 +204,12 @@ const MobileWebAppContents = ({ destroyAndReload }: { destroyAndReload: () => vo
onError={(err) => console.error('An error has occurred', err)}
onHttpError={() => console.error('An HTTP error occurred')}
onMessage={onMessage}
onContentProcessDidTerminate={() => {
webViewRef.current?.reload()
}}
onRenderProcessGone={() => {
webViewRef.current?.reload()
}}
allowFileAccess={true}
allowUniversalAccessFromFileURLs={true}
injectedJavaScriptBeforeContentLoaded={injectedJS}