npm / @react-navigation/native
@react-navigation/native
What changed in @react-navigation/native 6 to 7, from its official release notes, upgrade guides and advisories. Sources checked 2026-11-30.
30 breaking30 new APIs and options2 performance1 tooling22 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli init@react-navigation/native 727 changes
New APIs and options 4
Adds tabBarRepeatedPressBehavior to tabs.
Custom navigators can use a render callback.
Adds standard navigation compatibility.
Static config can now be wrapped in a component.
Performance 1
Split useLinkBuilder to minimize re-renders.
Tooling 1
Worked around VSCode autoimport not working for useNavigation and related APIs.
Fixes and other changes 21
Prevents state reset on web when history.go() takes longer than the timeout.
The return type of getRootState is fixed.
Linking actions are handled by the root navigator.
Its type is updated so SectionList refs work with strict types under RN 0.87.
resetRoot now always resets the root navigator's state.
Fixes state events and URL when a navigator mounts later.
Cleans up a stale listener after failed browser navigation.
Clones actions for links so subsequent navigation works.
Corrects handling of link actions, hrefs, and disabled state.
Fixes handling of targets such as _self and _blank in links.
Delayed browser history synchronization is now handled.
URL hashes are now handled.
Tracks history delta from popstate to detect browser-caused changes.
Keeps syncing history after an error occurs during sync.
Handles interrupted rollback when browser back is prevented.
History is rolled back if an update is prevented.
Adds a workaround for a false positive with multiple linking errors.
Fixes prefix matching when a host has additional characters.
Handles errors in parsing query params gracefully.
Fixes URLs with hashes not being matched correctly.
Dispatches an action for a deep link even if the route doesn't exist.
@react-navigation/native 658 changes
Breaking changes 30
More navigation-triggering UI elements render a tags on the Web, including header back buttons and material top tab buttons, improving accessibility and SEO.
Custom navigators require more type information to provide improved TypeScript type-checking and autocompletion.
Previously deprecated APIs across stack, drawer, bottom tabs, and material top tabs are removed; migrate usages to their replacement options and props.
headerLeft and HeaderBackButton use displayMode to control back-button titles, with default, generic, and minimal values.
Expo 52 is now the minimum version when using Expo Go.
The NavigationContainer independent prop is removed; wrap the container in NavigationIndependentTree instead.
labelVisible is removed from headerLeft and HeaderBackButton; use displayMode instead.
Link replaces the path-string to prop with screen and params props, and supports an optional href prop.
React Navigation UI elements, including headers, drawers, and material top tabs, now follow Material Design 3 guidelines.
navigate no longer navigates to a screen in a nested child navigator by default; use the parent screen and screen parameter instead.
The navigate action no longer accepts a route key option; use getId for similar use cases.
Set pop: true in the options to get behavior similar to the previous navigate behavior.
navigate no longer goes back to an existing screen in the stack; it stays on the focused screen or pushes a new one.
The navigation state and its nested objects are frozen in development mode to prevent accidental mutations.
onReady now fires only when navigators are rendered, matching navigationRef.isReady().
Pass this prop to NavigationContainer to temporarily retain navigation to screens in nested child navigators.
Adds a component for wrapping a NavigationContainer to render navigators in a separate tree.
Packages now use ESM exports, which can restrict internal-file imports; patch built lib files, and adjust TypeScript or Webpack resolution settings if needed.
When generating links, path-position params encode only characters not allowed in the path; query-position params remain URL encoded.
Adds an explicit method to go back to a screen in the stack, or pop the current screen and add it if it does not exist.
The minimum supported version is now 0.72.0.
Import createMaterialBottomTabNavigator from react-native-paper/react-navigation after the integration moved packages.
The Flipper plugin has been removed from @react-navigation/devtools; use the listed alternative developer tools.
The Material Bottom Tab Navigator integration has moved to react-native-paper; remove this package and import from react-native-paper/react-navigation.
Drawer Navigator requires Reanimated 2 or 3 on native platforms; projects using Reanimated 1 must upgrade.
The sceneContainerStyle prop and Drawer Navigator option are removed; use sceneStyle instead.
The minimum supported TypeScript version is now 5.0.0.
The option supporting Reanimated 1 and 2 APIs is removed from Drawer Navigator.
The hook now returns an object with buildHref and buildAction methods instead of a function.
useLinkProps replaces the path-string to prop with screen and params props, and supports an optional href prop.
New APIs and options 26
Bottom Tab Navigator adds an animation option to customize animations for tab transitions.
Stack Navigator adds an animation option for screen transitions as an alternative to TransitionPresets, easing migration between JS stack and native stack navigators.
The elements library adds a Button component that can navigate to screens, render an anchor tag for web navigation, or act as a regular button.
TabView accepts commonOptions for options shared across tabs, replacing several TabBar props and supporting improved tab-bar item re-rendering performance.
NavigationContainer accepts direction to set layout direction instead of relying on I18nManager.
The elements library adds a HeaderButton component for rendering appropriately styled buttons in headers.
Navigators using the Header component can configure a header search bar on all platforms; previously this was available only in Native Stack Navigator on iOS and Android.
The elements library adds a Label component for rendering label text, such as a tab bar button label.
Navigators gain a layout prop whose callback can add wrapper UI and access the navigator's state, options, and other data.
Screens gain a layout prop, making it easier to add shared UI such as an error boundary or suspense fallback.
Adds a way to filter out deep links from being handled.
Adds a migration method that behaves like the old navigate method; it will be removed in the next major.
The theme prop accepts a fonts property for customizing fonts used by React Navigation UI elements.
TabView accepts per-route options keyed by route.key; custom tab bars also receive the options in their arguments.
Linking config supports a top-level path to define a base path for all screens, useful when an app lives under a web subpath.
Built-in navigators can preload screens before navigation, rendering them off-screen and executing side effects such as data fetching.
The drawer implementation used by @react-navigation/drawer is available as a standalone package for use without React Navigation or a navigator.
Bottom Tab and Material Top Tab Navigators add sceneStyle for styling individual screens; Drawer Navigator renames sceneContainerStyle to sceneStyle.
Groups and navigators can use screenLayout to provide shared layout UI for their screens.
Bottom tabs can be positioned on the side or top, enabling responsive sidebars and tab layouts for TV apps.
The options callback now receives the theme object, allowing screen options to customize UI elements using theme values.
Native Stack Navigator exports a hook for animating content based on header height changes.
The useLocale hook exposes the layout direction value for use in custom components.
The devtools package exports a hook for logging navigation actions to the console.
The new hook prevents a screen from being removed and works with Native Stack Navigator as an alternative to beforeRemove.
Navigator-specific XOptionsArgs types are exported to type options callback arguments, including callbacks defined separately.
Performance 1
Drawer Navigator on the Web uses CSS transitions instead of Reanimated, reducing bundle size.
Fixes and other changes 1
The navigation object in options and listeners callbacks is now accurately typed for its navigator, without requiring manual type annotations.