fix(iOS): Call dispatchViewManagerCommand with correct number of arguments (#886)

This commit is contained in:
Cosmo Wolfe
2019-09-21 02:40:53 +02:00
committed by Thibault Malbranche
parent d25b20ac03
commit 33f1ee384f
2 changed files with 10 additions and 0 deletions
+5
View File
@@ -73,6 +73,7 @@ class WebView extends React.Component<AndroidWebViewProps, State> {
UIManager.dispatchViewManagerCommand(
this.getWebViewHandle(),
this.getCommands().goForward,
undefined
);
};
@@ -80,6 +81,7 @@ class WebView extends React.Component<AndroidWebViewProps, State> {
UIManager.dispatchViewManagerCommand(
this.getWebViewHandle(),
this.getCommands().goBack,
undefined
);
};
@@ -90,6 +92,7 @@ class WebView extends React.Component<AndroidWebViewProps, State> {
UIManager.dispatchViewManagerCommand(
this.getWebViewHandle(),
this.getCommands().reload,
undefined
);
};
@@ -97,6 +100,7 @@ class WebView extends React.Component<AndroidWebViewProps, State> {
UIManager.dispatchViewManagerCommand(
this.getWebViewHandle(),
this.getCommands().stopLoading,
undefined
);
};
@@ -104,6 +108,7 @@ class WebView extends React.Component<AndroidWebViewProps, State> {
UIManager.dispatchViewManagerCommand(
this.getWebViewHandle(),
this.getCommands().requestFocus,
undefined
);
};
+5
View File
@@ -82,6 +82,7 @@ class WebView extends React.Component<IOSWebViewProps, State> {
UIManager.dispatchViewManagerCommand(
this.getWebViewHandle(),
this.getCommands().goForward,
undefined,
);
};
@@ -92,6 +93,7 @@ class WebView extends React.Component<IOSWebViewProps, State> {
UIManager.dispatchViewManagerCommand(
this.getWebViewHandle(),
this.getCommands().goBack,
undefined,
);
};
@@ -103,6 +105,7 @@ class WebView extends React.Component<IOSWebViewProps, State> {
UIManager.dispatchViewManagerCommand(
this.getWebViewHandle(),
this.getCommands().reload,
undefined,
);
};
@@ -113,6 +116,7 @@ class WebView extends React.Component<IOSWebViewProps, State> {
UIManager.dispatchViewManagerCommand(
this.getWebViewHandle(),
this.getCommands().stopLoading,
undefined,
);
};
@@ -123,6 +127,7 @@ class WebView extends React.Component<IOSWebViewProps, State> {
UIManager.dispatchViewManagerCommand(
this.getWebViewHandle(),
this.getCommands().requestFocus,
undefined,
);
};