14.0.0-rc.0 (2026-05-07)
Migration guide
See the Migration to 14.x guide for
step-by-step upgrade instructions, codemods, and before/after examples.
Breaking changes
- Dropped support for React 18. React 19.0.0 or newer is now required.
- Raised the minimum supported React Native version to 0.78.
- Raised the minimum supported Node.js version to
^22.13.0 || >=24. - Replaced the deprecated React Test Renderer with
Test Renderer. - Added a peer dependency on Test Renderer 1.x. Install the Test Renderer compatibility line
that matches your React 19 minor version. - Made the core rendering and event APIs async by default:
render()now returnsPromise<RenderResult>.renderHook()now returnsPromise<RenderHookResult>.fireEvent()and its helpers now returnPromise<void>.act()now always returns a Promise and should always be awaited.
- Removed the
renderAsync,renderHookAsync, andfireEventAsyncAPIs. Userender,
renderHook, andfireEventinstead. - Removed the
updatealias. Usererenderinstead. - Removed the
getQueriesForElementalias. Usewithininstead. - Removed
UNSAFE_root. Usecontainerfor the pseudo-element container orrootfor
the first rendered host element. - Removed legacy
UNSAFE_*queries:UNSAFE_getAllByTypeUNSAFE_getByTypeUNSAFE_getAllByPropsUNSAFE_getByProps
- Removed the
concurrentRootrender and configuration option. Concurrent rendering is
always enabled in v14. - Removed the
createNodeMockrender option, which is not supported by the new Test Renderer
integration. - Removed the
unstable_validateStringsRenderedWithinTextrender option. Text string
validation is now always enabled.
Notable changes
- Reintroduced the
containerAPI as a safe pseudo-element container, aligned with React
Testing Library semantics. - Query results and the rendered element tree now expose host elements only. Composite
components are no longer visible through the test tree. - Type definitions now use
TestInstancefrom Test Renderer instead of
ReactTestInstancefrom React Test Renderer. - Suspended or hidden instances are now represented with React Native-like hidden props, such
asdisplay: 'none', so visibility queries and matchers behave closer to runtime behavior. fireEvent.press()andfireEvent.scroll()now pass default synthetic native event objects
to handlers and deep-merge any event props supplied by the test.- Accessible name calculation now follows React Native inputs more closely, including
TextInputplaceholder handling, child accessible name concatenation, and stricter
getByRole(..., { name })matching. configure,render,renderHook, anduserEvent.setupnow warn when unknown options are
passed, helping catch stale or misspelled options during migration.- Text strings rendered outside of React Native
<Text>components now throw, matching
React Native runtime behavior.
Test Renderer versions
Install the Test Renderer version that matches your React 19 minor version:
| React version | Recommended Test Renderer version |
|---|---|
19.2
| test-renderer@1.2
|
19.1
| test-renderer@1.1
|
19.0
| test-renderer@1.0
|
Older Test Renderer lines may not support newer React 19 features in tests. Newer Test
Renderer lines can produce peer dependency warnings, or an install error with npm. See the
Test Renderer React 19 compatibility lines
for the latest recommendations.
Codemods
Two codemods are available to automate the most common v14 upgrade work:
rntl-v14-update-depsupdates dependencies by removing React Test Renderer packages,
adding Test Renderer, and updating React Native Testing Library.rntl-v14-async-functionsupdates test code for asyncrender,renderHook,fireEvent,
act,rerender, andunmountusage.
Full changelog
See the full GitHub comparison:
v13.3.3...v14.0.0-rc.0