From 33f1ee384fbe4435ff41af662bb6d4bd0693a043 Mon Sep 17 00:00:00 2001 From: Cosmo Wolfe Date: Fri, 20 Sep 2019 17:40:53 -0700 Subject: [PATCH] fix(iOS): Call dispatchViewManagerCommand with correct number of arguments (#886) --- src/WebView.android.tsx | 5 +++++ src/WebView.ios.tsx | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/src/WebView.android.tsx b/src/WebView.android.tsx index 41678c8..b1d95f1 100644 --- a/src/WebView.android.tsx +++ b/src/WebView.android.tsx @@ -73,6 +73,7 @@ class WebView extends React.Component { UIManager.dispatchViewManagerCommand( this.getWebViewHandle(), this.getCommands().goForward, + undefined ); }; @@ -80,6 +81,7 @@ class WebView extends React.Component { UIManager.dispatchViewManagerCommand( this.getWebViewHandle(), this.getCommands().goBack, + undefined ); }; @@ -90,6 +92,7 @@ class WebView extends React.Component { UIManager.dispatchViewManagerCommand( this.getWebViewHandle(), this.getCommands().reload, + undefined ); }; @@ -97,6 +100,7 @@ class WebView extends React.Component { UIManager.dispatchViewManagerCommand( this.getWebViewHandle(), this.getCommands().stopLoading, + undefined ); }; @@ -104,6 +108,7 @@ class WebView extends React.Component { UIManager.dispatchViewManagerCommand( this.getWebViewHandle(), this.getCommands().requestFocus, + undefined ); }; diff --git a/src/WebView.ios.tsx b/src/WebView.ios.tsx index 6e4ab5c..ab7765b 100644 --- a/src/WebView.ios.tsx +++ b/src/WebView.ios.tsx @@ -82,6 +82,7 @@ class WebView extends React.Component { UIManager.dispatchViewManagerCommand( this.getWebViewHandle(), this.getCommands().goForward, + undefined, ); }; @@ -92,6 +93,7 @@ class WebView extends React.Component { UIManager.dispatchViewManagerCommand( this.getWebViewHandle(), this.getCommands().goBack, + undefined, ); }; @@ -103,6 +105,7 @@ class WebView extends React.Component { UIManager.dispatchViewManagerCommand( this.getWebViewHandle(), this.getCommands().reload, + undefined, ); }; @@ -113,6 +116,7 @@ class WebView extends React.Component { UIManager.dispatchViewManagerCommand( this.getWebViewHandle(), this.getCommands().stopLoading, + undefined, ); }; @@ -123,6 +127,7 @@ class WebView extends React.Component { UIManager.dispatchViewManagerCommand( this.getWebViewHandle(), this.getCommands().requestFocus, + undefined, ); };