fix(android): Unset mWebChromeClient on WebViewManager rather than WebView (#1720)
This commit is contained in:
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) {
|
||||
|
|
Loading…
Reference in New Issue