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-11-30.
2 new APIs and options1 performance2 behavior and defaults14 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli init@react-navigation/elements 219 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.
Performance 1
Avoids flexBasis: 0% in screen to address slowdown on Safari.
Behavior and default changes 2
Badge moved to elements and is now exposed in the public API.
Corners use a continuous rounded style.
Fixes and other changes 14
Increases the touch target for the Android back button in the header.
Passes disabled to PlatformPressable.
Prevents screen content from drawing over the header.
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.