Expo Router 58: Unified Navigation Core for Concurrent React, Transitions, Activity, Stable Loaders, and Liquid GlassArticle · digest for December 3
Frosted-glass digital UI still life: floating translucent Expo Router 58 mobile navigation screens smoothly switching around a single glowing core.
Article4 sections≈ 8 min

Expo Router 58: Unified Navigation Core for Concurrent React, Transitions, Activity, Stable Loaders, and Liquid Glass

Upgrade to Expo Router 58 in Expo SDK 58 and your Hermes engine plus assets shrink by a third, hidden screens pause their own timers and subscriptions without losing form state, and flashing loading spinners vanish from transitions. Everyday Stack, Link, and useRouter APIs barely changed. The only prerequisite is a current runtime: React Native 0.88, React 19 (19.3.x), and Node.js 22.13+ (or 24.3+ and 26+).

One unified core instead of syncing separate navigators

Before v58, Expo Router had an awkward split. From the outside, router.push, usePathname, and useGlobalSearchParams looked unified. Under the hood, state lived in separate silos for Stack, Tabs, and Drawer.

Every navigation had to sync those silos. With Concurrent React—where React can pause a background render, handle a tap, and finish drawing later—that split broke down: interrupting a render mid-flight when navigator state isn't atomic is unsafe.

Expo Router 58 rewrites the core around one global state and reducer. Transitions flow through a single point, so React 19 can safely defer renders, freeze background branches, lazy-load layouts, and catch screen-level errors. navigation.dispatch now waits for the current React commit to finish, with navigation.dispatchSync(action) added when you need synchronous execution.

Transitions and Activity: no flashing spinners or background leaks

The two biggest wins from the new core are React Transitions and React Activity. Both are ready to use, even though a few API names still carry experimental prefixes.

Normally, tapping a link switches screens right away and leaves you staring at a spinner for half a second. React Transitions (startTransition) mark a navigation as non-urgent so the old screen stays put while the next one fetches data. By default it runs in preload-only mode, or you can configure it globally or per navigation:

// app/_layout.tsx
import { router, Stack, unstable_useIsNavigating } from 'expo-router';
import { ActivityIndicator } from 'react-native';

// Mode: 'preload-only' (default) | 'always' | 'never'
router.setTransitionMode('always');

export function NavigationProgress() {
  const isNavigating = unstable_useIsNavigating();
  return <ActivityIndicator animating={isNavigating} />;
}

export default function RootLayout() {
  const openDetails = () =>
    router.push('/details', { inTransition: true });
  const goBackNow = () => router.back({ inTransition: false });
  return <Stack />;
}

If you set setTransitionMode('never') globally, { inTransition: true } is ignored, and in batched navigations transitions only trigger if every step allows them. Also note that unstable_useIsNavigating() only tracks deferred transitions—it won't fire on synchronous pushes or native back swipes.

The second addition freezes hidden screens using React 19's <Activity>. Deep stacks normally keep old screens alive in memory with active timers and sockets. In SDK 58, freezeOnBlur quietly stopped working. It is replaced by activityEnabled: React preserves state and scroll position while cleaning up useEffect and pausing subscriptions until you return.

// app/_layout.tsx — freeze thresholds in Stack
import { Stack } from 'expo-router';

export default function RootLayout() {
  return (
    <Stack activityEnabled>
      {/* Keep player alive in the background */}
      <Stack.Screen name="music" activityEnabled={false} />
      {/* Freeze editor immediately when navigating away */}
      <Stack.Screen name="editor" activityEnabled={1} />
    </Stack>
  );
}

In Stack, a boolean activityEnabled hides a screen once two screens sit above it; a number sets a custom threshold, and false keeps it active. For a single widget, use <NavigationAwareActivity hideWhenNestedAtLevel={1}>. In NativeTabs, JS tabs, and Drawer, inactive tabs sleep immediately on blur (replacing lazy), and a nested Stack sleeps as a whole while its layout stays mounted.

Stable server loaders without unstable_ and the web.output catch

Data loaders, server-side rendering (SSR), and middleware have graduated from experimental. Flags like unstable_useServerRendering, unstable_useServerDataLoaders, and unstable_useServerMiddleware are no longer needed—SDK 58 ignores them and logs warnings.

Expo Router also dropped its persistent in-memory loader cache between visits. Instead, standard HTTP caching applies: set headers via setResponseHeaders from expo-server or return Response.json with Cache-Control.

// app/profile.tsx — stable loader with HTTP caching
import { setResponseHeaders } from 'expo-server';
import { useLoaderData } from 'expo-router';
import { Text } from 'react-native';

export async function loader() {
  setResponseHeaders({ 'Cache-Control': 'private, max-age=60' });
  return { user: 'authenticated' };
}

export default function Profile() {
  const data = useLoaderData<typeof loader>();
  return <Text>{data.user}</Text>;
}

If you navigate away mid-request, Expo Router cancels the in-flight loader automatically. However, returning to an unmounted screen re-runs useLoaderData and can briefly flash <Suspense> fallback even on an HTTP cache hit. There's no SSR on iOS or Android: the loader runs on your server while the native client waits inside <Suspense>.

Watch app.json closely: web.output: "server" now renders HTML on every request, and unstable_useServerRendering: false no longer disables it. To keep the old "static HTML + API routes" setup, update your config:

{
  "expo": {
    "web": { "output": "static" },
    "plugins": [["expo-router", { "apiRoutes": true }]]
  }
}

If you actually want full SSR, keep "output": "server". You can also opt into granular code splitting under expo with "experiments": { "chunking": { "mode": "granular" } }.

Native Liquid Glass UI, −33% bundle size, and modal migration

Native UI primitives are now stable: NativeTabs moves to expo-router/native-tabs, and Stack.Toolbar handles native header and toolbar buttons. Both sit on react-native-screens 4.30.1 (with 5.0.0-alpha also supported), so navigation adapts automatically to foldable devices like iPhone Duo.

On iOS 26+, Stack headers default to Liquid Glass—translucent glass that adapts text contrast to the content scrolling behind it.

Native Stack header in Expo Router 58 with translucent Liquid Glass effect on iOS 26 (Source: Expo Blog)

On iOS 26, content can slide under the transparent header. SafeAreaView from react-native-safe-area-context won't save you—it only knows about the status bar, leaving text trapped under the title or creating double padding if headerTransparent: false. Use contentInsetAdjustmentBehavior="automatic" on ScrollView or FlatList, or turn off transparency on static screens. A temporary app-wide escape hatch is enableLegacyHeaderAppearance() (already deprecated).

The Expo team also trimmed dependencies by moving expo-symbols and @expo/ui to optional peer dependencies (install them and rebuild your dev client if you use them). Everyone else gets a lighter build: Hermes and assets are 33% smaller.

Official Hermes and asset bundle size comparison in Expo Router 58 showing a 33% reduction (Source: Expo Blog)

On web, asyncRoutes is now on by default (note that it ignores custom SuspenseFallback; disable via asyncRoutes: { web: false } and expo start --clear). Experimental granular chunking groups shared chunks per route cluster, cutting median first-load JS from 4.42 MB in SDK 57 down to 3.07 MB in SDK 58.

The biggest breaking change is the removal of experimental web modals (EXPO_UNSTABLE_WEB_MODAL, webModalStyle, --expo-router-modal-*). On web, modal and formSheet now open as regular stack screens. For simple modals, switch presentation to transparentModal with a WebModal wrapper; for complex cases, build a custom navigator with StackRouter and NativeStackView:

// app/_layout.tsx — replacing the removed web modal API
import { Stack } from 'expo-router';
import { Platform } from 'react-native';

export const unstable_settings = { anchor: 'index' };

export default function Layout() {
  return (
    <Stack>
      <Stack.Screen name="index" />
      <Stack.Screen
        name="modal"
        options={{
          presentation: Platform.select({
            web: 'transparentModal',
            default: 'modal',
          }),
          headerShown: false,
        }}
      />
    </Stack>
  );
}

The old initialRouteName prop moved to unstable_settings.anchor (alongside redirect, initialParams, navigationKey, beforeRemove, and __unsafe_action__). Per the migration guide, app/+html.tsx can no longer call navigation hooks—use useServerDocumentContext() and render bodyNodes or hydration breaks. Finally, renderRouter in tests is now async (await) and requires @testing-library/react-native v14+.

Expo Router 58 migration checklist

  • Run npx expo-doctor: React Native 0.88, React 19 (19.3.x), Node.js 22.13+ / 24.3+ / 26+.
  • Update imports to expo-router/native-tabs and install expo-symbols / @expo/ui if needed.
  • Replace freezeOnBlur with activityEnabled (set false on background screens like media players).
  • Remove unstable_useServer* flags and set web.output: "static" with apiRoutes: true if not using full SSR.
  • Replace SafeAreaView with contentInsetAdjustmentBehavior="automatic" for Liquid Glass on iOS 26.
  • Migrate web modals to transparentModal, check bodyNodes in app/+html.tsx, await renderRouter, and run expo start --clear.
Want a deep diveVotes help us choose what to break down in detail. This material has 0 votes.
Sources · 7