Fixed crash on webview method calls
This commit is contained in:
父節點
c67e2fa405
當前提交
3e583a6b39
共有 1 個文件被更改,包括 3 次插入 和 3 次删除
|
|
@ -105,9 +105,9 @@ class WebViewScreen extends React.PureComponent<Props> {
|
|||
/**
|
||||
* Callback to use when refresh button is clicked. Reloads the webview.
|
||||
*/
|
||||
onRefreshClicked = () => this.webviewRef.current.reload();
|
||||
onGoBackClicked = () => this.webviewRef.current.goBack();
|
||||
onGoForwardClicked = () => this.webviewRef.current.goForward();
|
||||
onRefreshClicked = () => this.webviewRef.current.getNode().reload(); // Need to call getNode() as we are working with animated components
|
||||
onGoBackClicked = () => this.webviewRef.current.getNode().goBack();
|
||||
onGoForwardClicked = () => this.webviewRef.current.getNode().goForward();
|
||||
|
||||
onOpenClicked = () => Linking.openURL(this.props.url);
|
||||
|
||||
|
|
|
|||
載入中…
Reference in a new issue