mirror of
https://github.com/status-im/react-native-webview.git
synced 2026-08-31 11:41:08 +00:00
fix(android): Unset mWebChromeClient on WebViewManager rather than WebView (#1720)
This commit is contained in:
@@ -693,6 +693,7 @@ public class RNCWebViewManager extends SimpleViewManager<WebView> {
|
|||||||
super.onDropViewInstance(webView);
|
super.onDropViewInstance(webView);
|
||||||
((ThemedReactContext) webView.getContext()).removeLifecycleEventListener((RNCWebView) webView);
|
((ThemedReactContext) webView.getContext()).removeLifecycleEventListener((RNCWebView) webView);
|
||||||
((RNCWebView) webView).cleanupCallbacksAndDestroy();
|
((RNCWebView) webView).cleanupCallbacksAndDestroy();
|
||||||
|
mWebChromeClient = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
public static RNCWebViewModule getModule(ReactContext reactContext) {
|
public static RNCWebViewModule getModule(ReactContext reactContext) {
|
||||||
|
|||||||
Reference in New Issue
Block a user