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

This commit is contained in:
Harsh Chokshi 2020-11-06 15:05:18 -08:00 committed by GitHub
parent 4ec290d3f5
commit c95c0ea923
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -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) {