unstale

npm / @testing-library/react-native

@testing-library/react-native

What changed in @testing-library/react-native 12 to 14, from its official release notes, upgrade guides and advisories. Sources checked 2026-11-30.

41 breaking1 deprecations5 new APIs and options9 behavior and defaults1 tooling4 fixes and other

See which of these apply to your code, ranked, in your agent:

npx @unstale/cli init

@unstale/cli on npm

@testing-library/react-native 1447 changes

Breaking changes 30

  • Accessible names more closely follow React Native inputs, including TextInput placeholder handling, child-name concatenation, and stricter getByRole name matching.

    14.0.0release notesupgrade guide

  • act always returns Promise<T> and should always be awaited, including when its callback is synchronous.

    14.0.0upgrade guide

  • The concurrentRoot render and configuration option was removed because concurrent rendering is always enabled.

    14.0.0release notesupgrade guide

  • The createNodeMock render option was removed because the new Test Renderer integration does not support it.

    14.0.0release notesupgrade guide

  • press creates a default synthetic native event object and deep-merges passed event props into it, so exact-object assertions may need partial matching.

    14.0.0upgrade guide

  • scroll creates a default synthetic native event object and deep-merges passed event props into it, so exact-object assertions may need partial matching.

    14.0.0upgrade guide

  • fireEvent() and its helpers are async by default and return Promise<void>; callers must await them.

    14.0.0release notesupgrade guide

  • The fireEventAsync API was removed; use fireEvent instead.

    14.0.0release notes

  • The getQueriesForElement alias was removed; use within instead.

    14.0.0release notesupgrade guide

  • Previously rendered content hidden by React receives display: 'none' while preserving existing styles, affecting visibility queries and matchers.

    14.0.0upgrade guide

  • The minimum supported Node.js version is now ^22.13.0 || >=24.

    14.0.0release notesupgrade guide

  • React 19.0.0 or newer is now required; React 18 is no longer supported.

    14.0.0release notesupgrade guide

  • The minimum supported React Native version is now 0.78.

    14.0.0release notesupgrade guide

  • render() is async by default and returns Promise<RenderResult>; callers must await it.

    14.0.0release notesupgrade guide

  • The renderAsync API was removed; use render instead.

    14.0.0release notes

  • Query results and the rendered element tree expose host elements only; composite components are no longer visible.

    14.0.0release notes

  • renderHook() is async by default and returns Promise<RenderHookResult>; callers must await it.

    14.0.0release notesupgrade guide

  • The renderHookAsync API was removed; use renderHook instead.

    14.0.0release notes

  • rerender now returns a Promise<void>; callers should await it.

    14.0.0upgrade guide

  • This codemod adds await to RNTL async calls and makes test functions async when needed.

    14.0.0upgrade guide

  • A codemod updates dependencies by removing React Test Renderer packages, adding Test Renderer, and updating React Native Testing Library.

    14.0.0release notesupgrade guide

  • The deprecated React Test Renderer integration was replaced with Test Renderer, which is now a peer dependency; install the compatibility line matching your React 19 minor version.

    14.0.0release notesupgrade guide

  • Type definitions now use TestInstance from Test Renderer instead of ReactTestInstance from React Test Renderer.

    14.0.0release notesupgrade guide

  • Text strings rendered outside React Native Text components now throw, matching React Native runtime behavior.

    14.0.0release notes

  • The legacy UNSAFE_getAllByProps query was removed.

    14.0.0release notes

  • The legacy UNSAFE_getByProps query was removed.

    14.0.0release notes

  • Legacy type and props queries were removed; use standard queries that target host elements.

    14.0.0upgrade guide

  • UNSAFE_root was removed; use container for the pseudo-element container or root for the first rendered host element.

    14.0.0release notesupgrade guide

  • The render option was removed because text string validation is now always enabled.

    14.0.0release notesupgrade guide

  • The update alias was removed; use rerender instead.

    14.0.0release notesupgrade guide

Deprecations 1

  • Bubbling of direct events in fireEvent is deprecated.

    14.1.0release notes

New APIs and options 4

  • Adds UserEvent support for accessibilityAction.

    14.1.0release notes

  • Adds fireEvent.layout for firing layout events, including direct events.

    14.1.0release notes

  • Adds UserEvent pullToRefresh() for testing pull-to-refresh interactions.

    14.1.0release notes

  • The container API was reintroduced as a safe pseudo-element container aligned with React Testing Library semantics.

    14.0.0release notesupgrade guide

Behavior and default changes 7

  • Warns when firing events on disabled elements.

    14.1.0release notes

  • act() always returns a Promise and should always be awaited.

    14.0.0release notes

  • fireEvent.press() passes a default synthetic native event object to handlers and deep-merges event props supplied by the test.

    14.0.0release notes

  • fireEvent.scroll() passes a default synthetic native event object to handlers and deep-merges event props supplied by the test.

    14.0.0release notes

  • Suspended or hidden instances are represented with React Native-like hidden props such as display: 'none', bringing visibility queries and matchers closer to runtime behavior.

    14.0.0release notes

  • configure, render, renderHook, and userEvent.setup warn when passed unknown options, helping catch stale or misspelled options during migration.

    14.0.0release notesupgrade guide

  • unmount now returns a Promise<void>; callers should await it.

    14.0.0upgrade guide

Tooling 1

  • A codemod updates test code for async render, renderHook, fireEvent, act, rerender, and unmount usage.

    14.0.0release notes

Fixes and other changes 4

  • Adds support for React Native 0.88 with React 19.3.

    14.1.0release notes

  • Fixes a setImmediate fake timer issue with jsdom.

    14.1.0release notes

  • Includes selection in the TextInput change event generated by user-event.

    14.0.1release notes

  • Cleans up waitFor timers when an error occurs during onTimeout printout.

    14.0.1release notes

@testing-library/react-native 138 changes

Breaking changes 6

  • These queries were removed; use *ByRole queries or the toHaveAccessibilityState matcher instead.

    13.0.0release notes

  • These queries were removed; use *ByRole queries or the toHaveAccessibleValue matcher instead.

    13.0.0release notes

  • The debug.shallow method was removed.

    13.0.0release notes

  • Host component name auto-detection was removed; the notes say tests should run faster.

    13.0.0release notes

  • The @testing-library/react-native Jest preset was removed; use the regular react-native Jest preset.

    13.0.0release notes

  • Support for React 16 and 17 was removed; React 18 and 19 are supported.

    13.0.0release notes

Behavior and default changes 2

  • Concurrent rendering is enabled by default.

    13.0.0release notes

  • Importing @testing-library/react-native automatically extends Jest matchers; importing @testing-library/react-native/extend-expect is no longer needed.

    13.0.0release notes

@testing-library/react-native 126 changes

Breaking changes 5

  • All queries exclude elements hidden from accessibility by default.

    12.0.0release notes

  • *ByRole queries now return only accessibility elements.

    12.0.0release notes

  • These queries now return host elements.

    12.0.0release notes

  • The container API was renamed to UNSAFE_root.

    12.0.0release notes

  • Introduced as the renamed container API.

    12.0.0release notes

New APIs and options 1