diff --git a/components/WebViewScreen.js b/components/WebViewScreen.js index 5ca209a..eb4ac9b 100644 --- a/components/WebViewScreen.js +++ b/components/WebViewScreen.js @@ -62,19 +62,22 @@ export default class WebViewScreen extends React.Component { refreshWebview() { for (let view of this.webviewArray) { - view.reload(); + if (view !== null) + view.reload(); } } goBackWebview() { for (let view of this.webviewArray) { - view.goBack(); + if (view !== null) + view.goBack(); } } goForwardWebview() { for (let view of this.webviewArray) { - view.goForward(); + if (view !== null) + view.goForward(); } } @@ -132,6 +135,7 @@ export default class WebViewScreen extends React.Component { render() { const nav = this.props.navigation; + this.webviewArray = []; return (