mirror of
https://github.com/status-im/react-native-webview.git
synced 2026-08-31 19:51:10 +00:00
fix(iOS): Call dispatchViewManagerCommand with correct number of arguments (#886)
This commit is contained in:
committed by
Thibault Malbranche
parent
d25b20ac03
commit
33f1ee384f
@@ -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
|
||||
);
|
||||
};
|
||||
|
||||
|
||||
@@ -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,
|
||||
);
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user