npm / @react-navigation/elements
@react-navigation/elements
What changed in @react-navigation/elements 2, from its official release notes, upgrade guides and advisories. Sources checked 2026-10-18.
2 new APIs and options11 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli init@react-navigation/elements 213 changes
New APIs and options 2
More style properties are allowed on the header, giving developers additional styling options.
Adds an unstable integration for native bottom tabs.
Fixes and other changes 11
Accessibility for the custom header searchbar was improved.
Measure frame size in a layout effect.
Prevents full-page navigation when clicking links on disabled pressables.
Corrects target detection for links.
Gracefully handles multiple versions of elements when using useFrameSize.
Fixes useFrameSize returning an incorrect layout on the old architecture.
Preserves accessibility on Android when the header is transparent.
Measures frame size without an additional view.
Changed the order of views so react-native-screens finds nested navigators.
Header layout is measured earlier, in a layout effect.
Tweaked lazy rendering logic.