Skip to content

Commit c95c0ea

Browse files
authored
fix(android): Unset mWebChromeClient on WebViewManager rather than WebView (#1720)
1 parent 4ec290d commit c95c0ea

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

android/src/main/java/com/reactnativecommunity/webview/RNCWebViewManager.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -693,6 +693,7 @@ public void onDropViewInstance(WebView webView) {
693693
super.onDropViewInstance(webView);
694694
((ThemedReactContext) webView.getContext()).removeLifecycleEventListener((RNCWebView) webView);
695695
((RNCWebView) webView).cleanupCallbacksAndDestroy();
696+
mWebChromeClient = null;
696697
}
697698

698699
public static RNCWebViewModule getModule(ReactContext reactContext) {

0 commit comments

Comments
 (0)