Skip to content

Releases: callstack/react-native-testing-library

v14.0.0-beta.0

20 Jan 15:35

Choose a tag to compare

v14.0.0-beta.0 Pre-release
Pre-release

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, and act return Promises and must be awaited.
  • This flushes pending React updates before your assertions run.

New renderer

  • Replaced deprecated react-test-renderer with Test Renderer.
  • Improved DX (HostElement replaces ReactTestInstance).

container API

  • screen.container is now safe to use.
  • Returns a pseudo-element container wrapping the rendered elements.

Breaking changes

  • Removed APIs: update (use rerender), getQueriesForElement (use within), UNSAFE_root (use container), and concurrentRoot option.
  • Removed legacy queries: UNSAFE_getAllByType, UNSAFE_getByType, UNSAFE_getAllByProps, and UNSAFE_getByProps. Use standard queries like getByRole.
  • Strict text validation: Text strings must be rendered within a <Text> component. The unstable_validateStringsRenderedWithinText option has been removed; validation is always on.

Migration

Use the codemods to upgrade:

  1. Update dependencies:

    npx codemod@latest rntl-v14-update-deps --target .
    npm install
  2. Migrate to async:

    npx codemod@latest rntl-v14-async-functions --target ./src

See the v14 Migration Guide for details.

Full Changelog

v14.0.0-alpha.6

09 Jan 17:40

Choose a tag to compare

v14.0.0-alpha.6 Pre-release
Pre-release

14.0.0-alpha.6 (2026-01-09)

What's Changed

Full Changelog: v14.0.0-alpha.5...v14.0.0-alpha.6

v14.0.0-alpha.5

06 Jan 13:11

Choose a tag to compare

v14.0.0-alpha.5 Pre-release
Pre-release

14.0.0-alpha.5 (2026-01-06)

  • renaming:
    • renderAsync => render, render => unsafe_renderSync
    • renderHookAsync => renderHook, renderHook => unsafe_renderHookSync
    • fireEventAsync => fireEvent, fireEvent => unsafe_fireEventSync
    • actAsync => act, act => unsafe_act

v14.0.0-alpha.4

04 Jan 15:13

Choose a tag to compare

v14.0.0-alpha.4 Pre-release
Pre-release

14.0.0-alpha.4 (2026-01-04)

  • make renderHook async by default

v14.0.0-alpha.3

02 Jan 23:48

Choose a tag to compare

v14.0.0-alpha.3 Pre-release
Pre-release

14.0.0-alpha.3 (2026-01-02)

  • improved toJSON output

v14.0.0-alpha.2

02 Jan 22:24

Choose a tag to compare

v14.0.0-alpha.2 Pre-release
Pre-release

14.0.0-alpha.2 (2026-01-02)

v14 is back:

  • rebased, to latest v13
  • proper fireEvent support with new unstable_fiber api from UTR
  • some rough edges still remain (it's alpha)

v13.3.3

26 Aug 11:55

Choose a tag to compare

13.3.3 (2025-08-26)

🐛 Bug Fixes

v13.3.2

25 Aug 07:22

Choose a tag to compare

13.3.2 (2025-08-25)

🐛 Bug Fixes

  • Do not infer generic Props type from RenderHookOptions (#1816) (919f7c6)

New Contributors

v13.3.1

20 Aug 07:29

Choose a tag to compare

13.3.1 (2025-08-20)

🐛 Bug Fixes

v13.3.0

18 Aug 11:01

Choose a tag to compare

13.3.0 (2025-08-18)

✨ Features

📚 Documentation