fix(mobile): issue with black screen on iOS (#1777)
This commit is contained in:
Binary file not shown.
BIN
.yarn/cache/react-native-webview-npm-11.23.1-43b9a78c23-58367276b4.zip
vendored
Normal file
BIN
.yarn/cache/react-native-webview-npm-11.23.1-43b9a78c23-58367276b4.zip
vendored
Normal file
Binary file not shown.
@@ -80,7 +80,7 @@
|
|||||||
"react-native-url-polyfill": "^1.3.0",
|
"react-native-url-polyfill": "^1.3.0",
|
||||||
"react-native-vector-icons": "^9.1.0",
|
"react-native-vector-icons": "^9.1.0",
|
||||||
"react-native-version-info": "^1.1.1",
|
"react-native-version-info": "^1.1.1",
|
||||||
"react-native-webview": "11.17.2",
|
"react-native-webview": "11.23.1",
|
||||||
"react-native-zip-archive": "^6.0.6",
|
"react-native-zip-archive": "^6.0.6",
|
||||||
"react-navigation-header-buttons": "^9.0.1",
|
"react-navigation-header-buttons": "^9.0.1",
|
||||||
"styled-components": "5.3.5"
|
"styled-components": "5.3.5"
|
||||||
|
|||||||
@@ -204,6 +204,12 @@ const MobileWebAppContents = ({ destroyAndReload }: { destroyAndReload: () => vo
|
|||||||
onError={(err) => console.error('An error has occurred', err)}
|
onError={(err) => console.error('An error has occurred', err)}
|
||||||
onHttpError={() => console.error('An HTTP error occurred')}
|
onHttpError={() => console.error('An HTTP error occurred')}
|
||||||
onMessage={onMessage}
|
onMessage={onMessage}
|
||||||
|
onContentProcessDidTerminate={() => {
|
||||||
|
webViewRef.current?.reload()
|
||||||
|
}}
|
||||||
|
onRenderProcessGone={() => {
|
||||||
|
webViewRef.current?.reload()
|
||||||
|
}}
|
||||||
allowFileAccess={true}
|
allowFileAccess={true}
|
||||||
allowUniversalAccessFromFileURLs={true}
|
allowUniversalAccessFromFileURLs={true}
|
||||||
injectedJavaScriptBeforeContentLoaded={injectedJS}
|
injectedJavaScriptBeforeContentLoaded={injectedJS}
|
||||||
|
|||||||
10
yarn.lock
10
yarn.lock
@@ -6891,7 +6891,7 @@ __metadata:
|
|||||||
react-native-url-polyfill: ^1.3.0
|
react-native-url-polyfill: ^1.3.0
|
||||||
react-native-vector-icons: ^9.1.0
|
react-native-vector-icons: ^9.1.0
|
||||||
react-native-version-info: ^1.1.1
|
react-native-version-info: ^1.1.1
|
||||||
react-native-webview: 11.17.2
|
react-native-webview: 11.23.1
|
||||||
react-native-zip-archive: ^6.0.6
|
react-native-zip-archive: ^6.0.6
|
||||||
react-navigation-header-buttons: ^9.0.1
|
react-navigation-header-buttons: ^9.0.1
|
||||||
react-test-renderer: 17.0.2
|
react-test-renderer: 17.0.2
|
||||||
@@ -32559,16 +32559,16 @@ __metadata:
|
|||||||
languageName: node
|
languageName: node
|
||||||
linkType: hard
|
linkType: hard
|
||||||
|
|
||||||
"react-native-webview@npm:11.17.2":
|
"react-native-webview@npm:11.23.1":
|
||||||
version: 11.17.2
|
version: 11.23.1
|
||||||
resolution: "react-native-webview@npm:11.17.2"
|
resolution: "react-native-webview@npm:11.23.1"
|
||||||
dependencies:
|
dependencies:
|
||||||
escape-string-regexp: 2.0.0
|
escape-string-regexp: 2.0.0
|
||||||
invariant: 2.2.4
|
invariant: 2.2.4
|
||||||
peerDependencies:
|
peerDependencies:
|
||||||
react: "*"
|
react: "*"
|
||||||
react-native: "*"
|
react-native: "*"
|
||||||
checksum: d49fc0ed3aca00455dbc32efa5d6d4f1c170b82db4134c4a26a2bc508ec2d8c6561cb64eb993ab4a87977c4f51182700344efb45d053819dbb89b6d0fcc2d883
|
checksum: 58367276b4457a12c0ecb24084c237048a31a8b4d49f53615634052c2dfcb318824e9239909b6bfb80cc8abacab658d278f480f7ff96267d10d5ff84a8ff1373
|
||||||
languageName: node
|
languageName: node
|
||||||
linkType: hard
|
linkType: hard
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user