From 83fc3d8466c1790e5dad95f39756aa0d4ce03de5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jens=20Kuhr=20J=C3=B8rgensen?= Date: Thu, 18 Oct 2018 08:09:51 +0200 Subject: [PATCH] Add reload() --- index.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/index.js b/index.js index 0c8566c..786d5a2 100644 --- a/index.js +++ b/index.js @@ -67,6 +67,10 @@ export default class MyWebView extends Component { this.webview.stopLoading(); } + reload() { + this.webview.reload(); + } + render () { const _w = this.props.width || Dimensions.get('window').width; const _h = this.props.autoHeight ? this.state.webViewHeight : this.props.defaultHeight;