Fixed webview crash on refresh after screen rotation

This commit is contained in:
keplyx 2020-01-30 15:53:20 +01:00
parent 32069f2b8c
commit c048032781

View file

@ -62,18 +62,21 @@ export default class WebViewScreen extends React.Component<Props> {
refreshWebview() {
for (let view of this.webviewArray) {
if (view !== null)
view.reload();
}
}
goBackWebview() {
for (let view of this.webviewArray) {
if (view !== null)
view.goBack();
}
}
goForwardWebview() {
for (let view of this.webviewArray) {
if (view !== null)
view.goForward();
}
}
@ -132,6 +135,7 @@ export default class WebViewScreen extends React.Component<Props> {
render() {
const nav = this.props.navigation;
this.webviewArray = [];
return (
<BaseContainer
navigation={nav}