Underlying WKWebView instance is not disposed of after unmounting WebView component #22067
Closed
3 tasks done
Labels
Component: View
Component: WebView
Related to the WebView component.
Resolution: Locked
This issue was locked by the bot.
Environment
Description
When the
useWebKit
prop is set on theWebView
component the underlying WKWebView instance does not get disposed of after the component is unmounted. These lingering instances can be seen using the Develop menu in Safari. This is only a problem when theuseWebKit
prop is set.Reproducible Demo
react-native run-ios
from the repository or by copy/pasting into App.js in a newly initialized React Native project.useWebKit
prop and re-run to verify this only happens when that prop is set.Repository: https://github.com/jacamera/rnWebviewTest
App.js:
Screenshot:

The text was updated successfully, but these errors were encountered: