diff --git a/apple/RNCWebView.m b/apple/RNCWebView.m index 2dca837..f840059 100644 --- a/apple/RNCWebView.m +++ b/apple/RNCWebView.m @@ -331,6 +331,7 @@ static NSDictionary* customCertificatesForHost; - (void)removeFromSuperview { if (_webView) { + [_webView.configuration.userContentController removeScriptMessageHandlerForName:HistoryShimName]; [_webView.configuration.userContentController removeScriptMessageHandlerForName:MessageHandlerName]; [_webView removeObserver:self forKeyPath:@"estimatedProgress"]; [_webView removeFromSuperview];