react-native-webview
14.0.1 · 20 Jun 2026MIT8.8M / weekRepositoryHomepagenpmAtom feed
In short
27 breaking13 internal
- Breaking
- Breaking
The Windows implementation now requires react-native-windows New Architecture (Fabric). The old-architecture WebView (System XAML) and WebView2 paper implementations were removed.
- Breaking
Update all platforms to their latest React Native versions
- Breaking
react-native 0.73.5 -> 0.86.0 (Android/iOS), react 18.2.0 -> 19.2.7
- Breaking
react-native-macos 0.73.17 -> 0.81.8
- Breaking
react-native-windows 0.73.8 -> 0.83.2 (latest supported by react-native-test-app)
- Breaking
@callstack/react-native-visionos 0.73.8 -> 0.79.6
- Breaking
react-native-test-app 3.7.2 -> 5.4.1, @rnx-kit/metro-config 1.x -> 2.x, @react-native/* 0.86.0, typescript 5.9.3
Release note
This should be non-breaking outside of windows, but it contains a lot of changes, so for now I'll keep 14 as latest, to install, use @next
- Breaking
windows: New Architecture support + update all platforms to latest React Native (#3973) (9626346), closes #3952
Breaking changes
- Breaking
The Windows implementation now requires
react-native-windows New Architecture (Fabric). The old-architecture
WebView (System XAML) and WebView2 paper implementations were removed.
Co-authored-by: Nitin-100 31587527+Nitin-100@users.noreply.github.com
Co-authored-by: anupriya13 54227869+anupriya13@users.noreply.github.com
Co-Authored-By: Claude Fable 5 noreply@anthropic.com
Claude-Session: claude.ai/code/session_016B5F3UMHpyhLiVDbBKPqgQ
- Breaking
Update all platforms to their latest React Native versions
- Breaking
react-native 0.73.5 -> 0.86.0 (Android/iOS), react 18.2.0 -> 19.2.7
- Breaking
react-native-macos 0.73.17 -> 0.81.8
- Breaking
react-native-windows 0.73.8 -> 0.83.2 (latest supported by
react-native-test-app) - Breaking
@callstack/react-native-visionos 0.73.8 -> 0.79.6
- Breaking
react-native-test-app 3.7.2 -> 5.4.1, @rnx-kit/metro-config 1.x -> 2.x,
@react-native/* 0.86.0, typescript 5.9.3 - Breaking
Regenerate example Android project and iOS Podfile from the
react-native-test-app 5.x templates (New Architecture + Hermes);
drop stale Podfile.lock files so pod install resolves fresh pods - Breaking
Add @react-native-windows/find-dotnet-tools, an undeclared dependency
of @react-native-windows/cli 0.83.2 - Breaking
Extend tsconfig from @react-native/typescript-config root export (the
package now uses an exports map)
Co-Authored-By: Claude Fable 5 noreply@anthropic.com
Claude-Session: claude.ai/code/session_016B5F3UMHpyhLiVDbBKPqgQ
- Breaking
Bump the hoisted ajv resolution to 8.20.0: react-native-test-app's
embed-manifest scripts use the named Ajv ESM export, which ajv 8.12
does not provide (broke Android and iOS example builds) - Breaking
macOS: Align the installed react-native with react-native-macos 0.81
before pod install; react-native-macos codegen cannot parse
react-native 0.86 core specs - Breaking
Windows: Cap Visual Studio discovery at 17.x and pin
WindowsTargetPlatformVersion, matching react-native-test-app's own CI;
react-native-windows 0.83 defaults to Visual Studio 2026 which
windows-2022 runners do not have
Co-Authored-By: Claude Fable 5 noreply@anthropic.com
Claude-Session: claude.ai/code/session_016B5F3UMHpyhLiVDbBKPqgQ
- Breaking
Address review feedback
- Breaking
Remove react-native-macos, react-native-windows,
@callstack/react-native-visionos and
@react-native-windows/find-dotnet-tools from devDependencies; they are
now installed per CI lane via the add:macos / add:visionos /
add:windows scripts (package.json stays aligned with core
react-native only) - Breaking
add:macos also installs react-native-macos@0.81.8 (core react-native
0.81.x tops out at 0.81.6, which is the exact peer of
react-native-macos 0.81.8) - Breaking
Rename RCTWebView2NativeComponent.ts to
RCTWebView2NativeComponent.windows.ts to flag it Windows-only,
mirroring WebViewNativeComponent.macos.ts; this also drops it from
iOS/Android codegen input - Breaking
Remove NativeWebviewModule.ts: It duplicated NativeRNCWebViewModule
(same native module, same shouldStartLoadWithLockIdentifier call);
the extra isFileUploadSupported method was never called from JS.
WebView.windows.tsx now uses the shared spec
Co-Authored-By: Claude Fable 5 noreply@anthropic.com
Claude-Session: claude.ai/code/session_016B5F3UMHpyhLiVDbBKPqgQ
The react-native CLI discovers platforms from package.json dependencies,
so a --no-save install leaves platforms.windows unregistered and
install-windows-test-app crashes. The CI workspace is ephemeral; the
checked-in package.json still omits the fork.
Co-Authored-By: Claude Fable 5 noreply@anthropic.com
Claude-Session: claude.ai/code/session_016B5F3UMHpyhLiVDbBKPqgQ
react-native-test-app's Win32 template keeps the vcxproj named ReactApp,
so the built executable is ReactApp.exe rather than the app display
name. Prefer the copy inside the .Package layout, which has the Windows
App SDK runtime next to it.
Co-Authored-By: Claude Fable 5 noreply@anthropic.com
Claude-Session: claude.ai/code/session_016B5F3UMHpyhLiVDbBKPqgQ
WinAppDriver crashes when handed a bare Win32 exe path; the previously
green flow launched a deployed package by Application User Model ID.
Install the Windows App SDK runtime dependencies staged by the wapproj,
register the loose layout (no signing needed), resolve the AUMID from
the installed package, and pass it to the tests. Also capture the
Appium server output and dump it when the job fails.
Co-Authored-By: Claude Fable 5 noreply@anthropic.com
Claude-Session: claude.ai/code/session_016B5F3UMHpyhLiVDbBKPqgQ
WinAppDriver launches the packaged app (the process starts) but gives up
waiting for its top-level window before a cold start (WebView2 + Hermes
init) completes. Launch the app from the workflow, wait for its window,
and pass the handle to the tests via the appTopLevelWindow capability.
Also dump recent Application error events if no window ever appears, and
only install x64 dependency packages.
Co-Authored-By: Claude Fable 5 noreply@anthropic.com
Claude-Session: claude.ai/code/session_016B5F3UMHpyhLiVDbBKPqgQ
- Breaking
windows: Keep the UI thread responsive during alert() and make the Alerts example testable
- Breaking
Run the __alert MessageBoxW on a detached thread: a page calling
alert() froze the entire app because the dialog blocked the UI thread - Breaking
Rework the Windows Alerts example to render the alert in-app (Text +
OK button) like the Messaging example; an unowned native modal is
invisible to window-scoped UI automation and its freeze cascaded into
every subsequent e2e test - Breaking
Run the Windows test suites sequentially (--runInBand) so the two e2e
suites don't race for the same app session
Co-Authored-By: Claude Fable 5 noreply@anthropic.com
Claude-Session: claude.ai/code/session_016B5F3UMHpyhLiVDbBKPqgQ
- Breaking
Match the in-app alert's OK button by name; React Native buttons do
not necessarily expose the UIA Button control type that the previous
//Button[@Name] XPath required - Breaking
Alert.test.js activates the Alerts tab first instead of assuming the
app was left there by an earlier suite - Breaking
Retry tab-switch clicks on transient WinAppDriver failures
- Breaking
On failure, grep the full Appium log for errors with context and dump
recent Application error events (crash evidence) instead of a blind
tail
Co-Authored-By: Claude Fable 5 noreply@anthropic.com
Claude-Session: claude.ai/code/session_016B5F3UMHpyhLiVDbBKPqgQ
Diagnosis from CI: once a state update inserts a sibling element above a
mounted WebView (resizing its island), every subsequent UI-automation
click fails app-wide with 'unknown error in the remote end' - even from
fresh WinAppDriver sessions - while element finds keep working. The
Messaging suite's final test triggers exactly that, so it now runs last
and the remaining suites (MultiMessaging, OpenWindow, tab-switching
stability) run before it.
Also skip the in-app alert round trip: messages posted from the Alerts
page via window.ReactNativeWebView.postMessage never reach onMessage on
that screen (the identical flow works on the Messaging screen). Both
issues are documented as known New Architecture limitations to fix in
the component.
Remove Alert.test.js: its scenario is covered (and currently skipped)
in WebView2NewArch.test.js, and as a second suite it always ran into
the post-Messaging input wedge.
Co-Authored-By: Claude Fable 5 noreply@anthropic.com
Claude-Session: claude.ai/code/session_016B5F3UMHpyhLiVDbBKPqgQ
Round 10 falsified the island-resize theory: MultiMessaging's send
(no layout change, console.log only) wedged clicks just like Messaging's
did, while the Alerts screen - where message delivery is broken - never
wedged anything. The trigger is a WebView delivering an onMessage event
to React Native. Keep the highest-value interaction (Messaging's
bidirectional round trip with a UI assertion) as the final test of the
run and skip MultiMessaging's assertion-free send with a TODO.
Co-Authored-By: Claude Fable 5 noreply@anthropic.com
Claude-Session: claude.ai/code/session_016B5F3UMHpyhLiVDbBKPqgQ
- Breaking
windows: Tear down the XamlIsland and WebView2 when the view is destroyed
The component never disposed anything on unmount. The orphaned
XamlIsland (with a live WebView2) breaks input routing for the entire
window: after the first unmount of a WebView screen, every
composition-level click in the app fails with 'unknown error in the
remote end' from UI automation, while element finds and clicks inside
remaining WebView content keep working. Subscribe to the component
view's Destroying event and close the WebView2 and the island there.
Co-Authored-By: Claude Fable 5 noreply@anthropic.com
Claude-Session: claude.ai/code/session_016B5F3UMHpyhLiVDbBKPqgQ
The island-teardown fix did not resolve the input wedge: after the
second unmount/remount cycle of a WebView screen, composition-level
UI-automation clicks still fail app-wide while finds and WebView-content
clicks keep working. This needs live debugging against the WinAppSDK
input stack, not CI iteration. Keep the proven coverage - launch,
render checks, UIA reaching into WebView content, one tab switch, and
the full bidirectional messaging round trip with a UI assertion - and
skip the multi-switch suites with a documented TODO.
Co-Authored-By: Claude Fable 5 noreply@anthropic.com
Claude-Session: claude.ai/code/session_016B5F3UMHpyhLiVDbBKPqgQ
While the New Architecture / latest-React-Native line stabilizes,
npm install react-native-webview keeps resolving v14 from latest;
the v15 line is available as react-native-webview@next. Versions and
GitHub releases are cut as usual; only the npm channel changes.
Co-Authored-By: Claude Fable 5 noreply@anthropic.com
Claude-Session: claude.ai/code/session_016B5F3UMHpyhLiVDbBKPqgQ
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.