瀏覽代碼

Merge branch 'renaming/rct-rnc' into cleaning-ios-wkwebview

Thibault Malbranche 6 年之前
父節點
當前提交
1ab70c8795
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2
    2
      js/WebView.ios.js

+ 2
- 2
js/WebView.ios.js 查看文件

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