mirror of
https://github.com/status-im/react-native-webview.git
synced 2025-02-23 17:28:37 +00:00
fix(iOS): Call dispatchViewManagerCommand with correct number of arguments (#886)
This commit is contained in:
parent
d25b20ac03
commit
33f1ee384f
@ -73,6 +73,7 @@ class WebView extends React.Component<AndroidWebViewProps, State> {
|
|||||||
UIManager.dispatchViewManagerCommand(
|
UIManager.dispatchViewManagerCommand(
|
||||||
this.getWebViewHandle(),
|
this.getWebViewHandle(),
|
||||||
this.getCommands().goForward,
|
this.getCommands().goForward,
|
||||||
|
undefined
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -80,6 +81,7 @@ class WebView extends React.Component<AndroidWebViewProps, State> {
|
|||||||
UIManager.dispatchViewManagerCommand(
|
UIManager.dispatchViewManagerCommand(
|
||||||
this.getWebViewHandle(),
|
this.getWebViewHandle(),
|
||||||
this.getCommands().goBack,
|
this.getCommands().goBack,
|
||||||
|
undefined
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -90,6 +92,7 @@ class WebView extends React.Component<AndroidWebViewProps, State> {
|
|||||||
UIManager.dispatchViewManagerCommand(
|
UIManager.dispatchViewManagerCommand(
|
||||||
this.getWebViewHandle(),
|
this.getWebViewHandle(),
|
||||||
this.getCommands().reload,
|
this.getCommands().reload,
|
||||||
|
undefined
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -97,6 +100,7 @@ class WebView extends React.Component<AndroidWebViewProps, State> {
|
|||||||
UIManager.dispatchViewManagerCommand(
|
UIManager.dispatchViewManagerCommand(
|
||||||
this.getWebViewHandle(),
|
this.getWebViewHandle(),
|
||||||
this.getCommands().stopLoading,
|
this.getCommands().stopLoading,
|
||||||
|
undefined
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -104,6 +108,7 @@ class WebView extends React.Component<AndroidWebViewProps, State> {
|
|||||||
UIManager.dispatchViewManagerCommand(
|
UIManager.dispatchViewManagerCommand(
|
||||||
this.getWebViewHandle(),
|
this.getWebViewHandle(),
|
||||||
this.getCommands().requestFocus,
|
this.getCommands().requestFocus,
|
||||||
|
undefined
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -82,6 +82,7 @@ class WebView extends React.Component<IOSWebViewProps, State> {
|
|||||||
UIManager.dispatchViewManagerCommand(
|
UIManager.dispatchViewManagerCommand(
|
||||||
this.getWebViewHandle(),
|
this.getWebViewHandle(),
|
||||||
this.getCommands().goForward,
|
this.getCommands().goForward,
|
||||||
|
undefined,
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -92,6 +93,7 @@ class WebView extends React.Component<IOSWebViewProps, State> {
|
|||||||
UIManager.dispatchViewManagerCommand(
|
UIManager.dispatchViewManagerCommand(
|
||||||
this.getWebViewHandle(),
|
this.getWebViewHandle(),
|
||||||
this.getCommands().goBack,
|
this.getCommands().goBack,
|
||||||
|
undefined,
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -103,6 +105,7 @@ class WebView extends React.Component<IOSWebViewProps, State> {
|
|||||||
UIManager.dispatchViewManagerCommand(
|
UIManager.dispatchViewManagerCommand(
|
||||||
this.getWebViewHandle(),
|
this.getWebViewHandle(),
|
||||||
this.getCommands().reload,
|
this.getCommands().reload,
|
||||||
|
undefined,
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -113,6 +116,7 @@ class WebView extends React.Component<IOSWebViewProps, State> {
|
|||||||
UIManager.dispatchViewManagerCommand(
|
UIManager.dispatchViewManagerCommand(
|
||||||
this.getWebViewHandle(),
|
this.getWebViewHandle(),
|
||||||
this.getCommands().stopLoading,
|
this.getCommands().stopLoading,
|
||||||
|
undefined,
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -123,6 +127,7 @@ class WebView extends React.Component<IOSWebViewProps, State> {
|
|||||||
UIManager.dispatchViewManagerCommand(
|
UIManager.dispatchViewManagerCommand(
|
||||||
this.getWebViewHandle(),
|
this.getWebViewHandle(),
|
||||||
this.getCommands().requestFocus,
|
this.getCommands().requestFocus,
|
||||||
|
undefined,
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user