Mosmoxmosmox

Mosmox journal

In focus — iOS 26.

A selection of publications grouped under the iOS 26 tag.

Migrating to Expo Router 58: Native Tabs, the iOS 26 Native Header and What Changes in Navigation

Migrating to Expo Router 58: Native Tabs, the iOS 26 Native Header and What Changes in Navigation

On November 30, 2026 the Expo team introduced Expo Router 58, the router for Expo SDK 58, which shipped on October 15 and is built for iOS 27 and React Native 0.88. The theme of the release is "even more native": Native Tabs and Stack.Toolbar are stable, the stack header on iOS 26 uses the system appearance by default, and navigation runs on a new core. The team says the changes should be mostly mechanical, but the migration guide has a few items that are easy to miss and turn into production bugs. Here is what changed and how to plan the upgrade.

What a mobile app gets

  • Native Tabs are stable. The tab bar is the platform's system component, not a JavaScript implementation. If you used the experimental version, change the import from expo-router/unstable-native-tabs to expo-router/native-tabs.
  • Stack.Toolbar is stable. It adds native header buttons and bottom toolbars on iOS and Android, for example <Stack.Toolbar placement="right"> with <Stack.Toolbar.Button> inside.
  • Native header on iOS 26. The Stack header uses the system appearance and system fonts by default.
  • A new navigation core. Navigation state is now a single global state with one reducer. Expo says the public API remains largely unchanged, but behaviour changes in the details (see below).
  • Smaller bundles. According to the team, Hermes bytecode went from 2.63 to 2.42 MB (−8%), minified gzipped JS from 441 to 390 kB (−11%), and Hermes plus assets from 3.63 to 2.45 MB (−33%).
  • React transitions and <Activity>. The APIs are experimental. By default transitions are used only for screen preloading.

Native Tabs: what to know before switching

Unlike the regular Tabs layout, Native Tabs use the platform's system tab bar. A basic layout is NativeTabs containing NativeTabs.Trigger name="index" with NativeTabs.Trigger.Label and NativeTabs.Trigger.Icon sf="house.fill" md="home". Practical points from the documentation:

  • Tabs are not added automatically. Every screen has to be declared explicitly with NativeTabs.Trigger.
  • Icons per platform: sf for SF Symbols on iOS, md for Material Symbols on Android, src for a custom image. Android icons in native tabs need the optional expo-symbols dependency, and Stack.Toolbar on Android needs @expo/ui. Install both with npx expo install.
  • Hiding tabs dynamically resets state. The docs warn that changing hidden remounts the navigator.
  • disabled on a trigger is not access control. Screens that must be unavailable without sign-in need protected routes.
  • Search tab on iOS 26. A trigger with role="search" becomes a separate native search tab. In SDK 58, selecting it activates the search field right away (iOS 26.1 and later); opt out with disableAutomaticSearchActivation. iOS 26 features require building with Xcode 26 or later.
  • Lazy behaviour via Activity. The equivalent of the regular tabs' lazy prop is <NativeTabs activityEnabled>. The old freezeOnBlur has no effect in SDK 58; activityEnabled replaces it.

The iOS 26 native header: where screens can break

This is probably the most visible change for users, and it is where layout regressions are most likely.

  • The default for headerTransparent is now { ios: true, android: false, web: false }, so on iOS content goes under the header.
  • To keep scroll content from hiding under the header, the guide recommends contentInsetAdjustmentBehavior="automatic" on scroll views and explicitly says not to use SafeAreaView from react-native-safe-area-context for this.
  • If your design system is not ready for the new look, call enableLegacyHeaderAppearance() at the top level of the root layout. The function is already deprecated and will be removed in a future release, so treat it as a stopgap.

Practical advice: walk through every screen with scrolling, custom headers and sticky elements on an iOS 26 device before merging the upgrade.

Navigation changes that break behaviour without compile errors

The new navigation core is the main source of silent regressions. Check these first:

  • initialRouteName is removed. Use export const unstable_settings = { anchor: 'index' }; instead. The guide warns not to use anchor to pick the initial screen; to put the anchor under a screen during imperative navigation, pass { withAnchor: true }.
  • Nested navigation. Calls like navigation.navigate('(tabs)', { screen: 'feed', ... }) should become router.push({ pathname: '/(tabs)/feed/[id]', params: { id: '42' } }). Ancestor params are no longer copied into descendant routes during imperative navigation, so a screen that relied on them will get undefined.
  • Layout Screen no longer accepts redirect or initialParams. Use a dedicated Redirect route or Stack.Protected guard={...} redirectTo="/sign-in". Protected routes stay registered, and a failing guard renders a redirect.
  • Tabs and drawer show only declared screens. Use options={{ href: null }} to hide one.
  • beforeRemove is removed. It is replaced by the usePreventRemove hook from expo-router and the removed and removePrevented events. This matters for screens with unsaved forms: if you don't migrate, the "Discard changes?" dialog simply disappears.
  • navigation.dispatch is now queued until after the React commit. Use dispatchSync(action) to apply immediately. Dispatch functions are no longer supported, and useNavigation throws outside a navigator.
  • The preferred API is useRouter(), not useNavigation().navigate() or the module-level router. The module-level router throws before the first router render, a typical trap for push-notification handlers and deep-link logic that runs at startup.

If you have custom navigators or routers, review the guide's section on extendRouter, createStandardRouterNavigator and integrateWithRouter: several exports were removed from expo-router/react-navigation, and createStackNavigator is gone from expo-router/js-stack.

Tests

expo-router/testing-library now requires @testing-library/react-native 14 or later. renderRouter returns a promise, and renderRouterAsync is replaced by renderRouter, so every navigation test needs await. It is a good reason to update tests first and code second: green tests on the old navigation behaviour are the best way to catch regressions in the new core.

If your app also ships to the web

Teams that serve the same codebase on the web have more to do:

  • Data loaders, server middleware and server rendering are stable and on by default. The unstable_useServerRendering, unstable_useServerDataLoaders and unstable_useServerMiddleware flags have no effect and warn even when set to false, so remove them.
  • With web.output: "server", HTML is rendered on every request instead of at export time. To keep prerendered HTML with API routes, use "web": { "output": "static" } and the ["expo-router", { "apiRoutes": true }] plugin option; API routes still need a deployed server.
  • Loader data is no longer cached in memory between route visits; caching is controlled with Cache-Control headers, for example via setResponseHeaders from expo-server.
  • expo-router/head tags are no longer in the initial static HTML; use generateMetadata() for SEO metadata. A custom +html.tsx must call useServerDocumentContext(), otherwise the app never becomes interactive.
  • Async routes are on by default on the web, so each route is a separate bundle. Expo measured that experimental granular chunking ("experiments": { "chunking": { "mode": "granular" } }) cut the median first-load JS per route from 4.42 MB in SDK 57 to 3.07 MB.
  • The experimental web modal API is removed in favour of custom modals with transparentModal.

A one-sprint migration plan

  1. Update the SDK and dependencies with npx expo install --fix, then run npx expo-doctor.
  2. Upgrade @testing-library/react-native to 14+ and move navigation tests to the async renderRouter.
  3. Search the codebase for initialRouteName, beforeRemove, freezeOnBlur, redirect=, initialParams, unstable-native-tabs and navigation.navigate( with a screen param: that is the core list of mechanical edits.
  4. Check screens that read params from a parent route.
  5. Rebuild the dev build and walk through every screen on iOS 26: header, scrolling, search in tabs.
  6. Decide whether you need enableLegacyHeaderAppearance() for now, and plan to drop it.
  7. For the web, remove the unstable_* flags and check the web.output mode, SEO metadata and loader caching.

Conclusion

Expo Router 58 is a clear step toward Expo apps whose navigation is indistinguishable from native: the system tab bar, the system iOS 26 header, native toolbars and smaller bundles. The price is a new navigation core that changes several established patterns, and not all of those changes surface at compile time. Start with tests and a search for deprecated APIs, then check layouts on iOS 26.

Journal

Ideas and products