Browse Source

Updated ref to use react.createRef

Thibault Malbranche 6 years ago
parent
commit
7df0ccd24e
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      js/WebView.ios.js

+ 2
- 2
js/WebView.ios.js View File

255
 
255
 
256
     const webView = (
256
     const webView = (
257
       <NativeWebView
257
       <NativeWebView
258
-        ref={webViewRef}
258
+        ref={this.webViewRef}
259
         key="webViewKey"
259
         key="webViewKey"
260
         style={webViewStyles}
260
         style={webViewStyles}
261
         source={resolveAssetSource(source)}
261
         source={resolveAssetSource(source)}
390
    * Returns the native `WebView` node.
390
    * Returns the native `WebView` node.
391
    */
391
    */
392
   getWebViewHandle = () => {
392
   getWebViewHandle = () => {
393
-    return ReactNative.findNodeHandle(webViewRef.current);
393
+    return ReactNative.findNodeHandle(this.webViewRef.current);
394
   };
394
   };
395
 
395
 
396
   _onLoadingStart = (event: WebViewNavigationEvent) => {
396
   _onLoadingStart = (event: WebViewNavigationEvent) => {