react-native-webview
14.0.1 · 20 Jun 2026MIT8.8M / weekRepositoryHomepagenpmAtom feed
8.2.1 is the newest release of 8.x.
In short
3 breaking1 new
- Breaking
ios: if you use onNavigationStateChange on iOS it will now trigger on # changes to the url.
- Breaking
Hook the
window.historyAPI on iOS to generate events - Breaking
Remove the outdated section about hash changes
Security
1 advisory affects 8.0.0
- ModerateAndroid WebView Universal Cross-site ScriptingGHSA-36j3-xxf7-4pqg · 2 Oct 2020No fix yet
Release note
Features
ios: Generate history API events on iOS
Breaking changes
- Breaking
ios: if you use onNavigationStateChange on iOS it will now trigger on # changes to the url.
- Breaking
Hook the
window.historyAPI on iOS to generate events
The underlying WKWebView doesn't seem to generate any events in response to the window.history API - none of the WKNavigationDelegate methods fire.
Given this limitation, the only way to know when the location changes via this API is to inject Javascript into the page and have it notify the native code directly when any of these functions are called.
The setTimeout call gives up the current tick, allowing the location to change before firing the event.
- Breaking
Remove the outdated section about hash changes
Now that this bug is fixed, the workaround is no longer required.
A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.