|
@@ -139,14 +139,14 @@ class WebViewScreen extends React.PureComponent<Props> {
|
139
|
139
|
/**
|
140
|
140
|
* Callback to use when refresh button is clicked. Reloads the webview.
|
141
|
141
|
*/
|
142
|
|
- onRefreshClicked = () => this.webviewRef.current.getNode().reload(); // Need to call getNode() as we are working with animated components
|
143
|
|
- onGoBackClicked = () => this.webviewRef.current.getNode().goBack();
|
144
|
|
- onGoForwardClicked = () => this.webviewRef.current.getNode().goForward();
|
|
142
|
+ onRefreshClicked = () => this.webviewRef.current.reload();
|
|
143
|
+ onGoBackClicked = () => this.webviewRef.current.goBack();
|
|
144
|
+ onGoForwardClicked = () => this.webviewRef.current.goForward();
|
145
|
145
|
|
146
|
146
|
onOpenClicked = () => Linking.openURL(this.props.url);
|
147
|
147
|
|
148
|
148
|
injectJavaScript = (script: string) => {
|
149
|
|
- this.webviewRef.current.getNode().injectJavaScript(script);
|
|
149
|
+ this.webviewRef.current.injectJavaScript(script);
|
150
|
150
|
}
|
151
|
151
|
|
152
|
152
|
/**
|