Releases: callstack/react-native-testing-library
Releases · callstack/react-native-testing-library
v14.0.0-beta.0
14.0.0-beta.0 (2026-01-20)
Note
This is a beta release. APIs and behavior may change.
What's new
React 19 and React Native 0.78+
- Drops support for React 18.
- Requires React 19.0.0+ and React Native 0.78+.
Async APIs
The main APIs are now async to support React 19's async rendering (Suspense, use()):
render,renderHook,fireEvent, andactreturn Promises and must be awaited.- This flushes pending React updates before your assertions run.
New renderer
- Replaced deprecated
react-test-rendererwith Test Renderer. - Improved DX (
HostElementreplacesReactTestInstance).
container API
screen.containeris now safe to use.- Returns a pseudo-element container wrapping the rendered elements.
Breaking changes
- Removed APIs:
update(usererender),getQueriesForElement(usewithin),UNSAFE_root(usecontainer), andconcurrentRootoption. - Removed legacy queries:
UNSAFE_getAllByType,UNSAFE_getByType,UNSAFE_getAllByProps, andUNSAFE_getByProps. Use standard queries likegetByRole. - Strict text validation: Text strings must be rendered within a
<Text>component. Theunstable_validateStringsRenderedWithinTextoption has been removed; validation is always on.
Migration
Use the codemods to upgrade:
-
Update dependencies:
npx codemod@latest rntl-v14-update-deps --target . npm install -
Migrate to async:
npx codemod@latest rntl-v14-async-functions --target ./src
See the v14 Migration Guide for details.
v14.0.0-alpha.6
14.0.0-alpha.6 (2026-01-09)
What's Changed
- v14 (alpha) - React 19 only, uses new renderer by @mdjastrzebski in #1705
- chore: unify nightly jobs by @mdjastrzebski in #1852
- chore: nightly CI for v13 by @mdjastrzebski in #1853
- chore: test-renderer 0.13 by @mdjastrzebski in #1854
- refactor: remove unsafe sync functions by @mdjastrzebski in #1855
- refactor: remove deprecated aliases:
updateandgetQueriesForElementby @mdjastrzebski in #1856 - chore: rewrite
rendertests by @mdjastrzebski in #1859
Full Changelog: v14.0.0-alpha.5...v14.0.0-alpha.6
v14.0.0-alpha.5
14.0.0-alpha.5 (2026-01-06)
- renaming:
renderAsync=>render,render=>unsafe_renderSyncrenderHookAsync=>renderHook,renderHook=>unsafe_renderHookSyncfireEventAsync=>fireEvent,fireEvent=>unsafe_fireEventSyncactAsync=>act,act=>unsafe_act
v14.0.0-alpha.4
14.0.0-alpha.4 (2026-01-04)
- make
renderHookasync by default
v14.0.0-alpha.3
14.0.0-alpha.3 (2026-01-02)
- improved
toJSONoutput
v14.0.0-alpha.2
14.0.0-alpha.2 (2026-01-02)
v14 is back:
- rebased, to latest v13
- proper
fireEventsupport with newunstable_fiberapi from UTR - some rough edges still remain (it's alpha)