Fixed crash on webview method calls
このコミットが含まれているのは:
コミット
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.
|
* Callback to use when refresh button is clicked. Reloads the webview.
|
||||||
*/
|
*/
|
||||||
onRefreshClicked = () => this.webviewRef.current.reload();
|
onRefreshClicked = () => this.webviewRef.current.getNode().reload(); // Need to call getNode() as we are working with animated components
|
||||||
onGoBackClicked = () => this.webviewRef.current.goBack();
|
onGoBackClicked = () => this.webviewRef.current.getNode().goBack();
|
||||||
onGoForwardClicked = () => this.webviewRef.current.goForward();
|
onGoForwardClicked = () => this.webviewRef.current.getNode().goForward();
|
||||||
|
|
||||||
onOpenClicked = () => Linking.openURL(this.props.url);
|
onOpenClicked = () => Linking.openURL(this.props.url);
|
||||||
|
|
||||||
|
|
|
||||||
読み込み中…
新しいイシューから参照