fix(android): Unset mWebChromeClient on WebViewManager rather than WebView (#1720)

This commit is contained in:
Harsh Chokshi
2020-11-07 00:05:18 +01:00
committed by GitHub
parent 4ec290d3f5
commit c95c0ea923
@@ -693,6 +693,7 @@ public class RNCWebViewManager extends SimpleViewManager<WebView> {
super.onDropViewInstance(webView);
((ThemedReactContext) webView.getContext()).removeLifecycleEventListener((RNCWebView) webView);
((RNCWebView) webView).cleanupCallbacksAndDestroy();
mWebChromeClient = null;
}
public static RNCWebViewModule getModule(ReactContext reactContext) {