Skip to content

fix(expo-router): support Expo Router 57 and 58 - #157

Draft
Ubax wants to merge 2 commits into
eds2002:mainfrom
jakub-agent:fix/expo-router-57-58
Draft

Ubax wants to merge 2 commits into
eds2002:mainfrom
jakub-agent:fix/expo-router-57-58

Conversation

@Ubax

@Ubax Ubax commented Oct 12, 2026

Copy link
Copy Markdown

Expo Router 57 added a type parameter to unstable_integrateWithRouter, which typed createProps as never. Check the options with satisfies and cast them so 56, 57 and 58 all typecheck.

Expo Router 58 keeps preloaded routes in routes after index instead of preloadedRoutes. Split them by index so Blank Stack and the native stack adapter no longer show preloaded screens as active.

Please provide enough information so that others can review your pull request:

Motivation

Explain the motivation for making this change. What existing problem does the pull request solve?

Expo Router 57 added a type parameter to `unstable_integrateWithRouter`, which typed `createProps` as `never`. Check the options with `satisfies` and cast them so 56, 57 and 58 all typecheck.

Expo Router 58 keeps preloaded routes in `routes` after `index` instead of `preloadedRoutes`. Split them by `index` so Blank Stack and the native stack adapter no longer show preloaded screens as active.

Co-authored-by: ubax <32908614+ubax@users.noreply.github.com>
@netlify

netlify Bot commented Oct 12, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for rnst-docs ready!

Name Link
🔨 Latest commit a178678
🔍 Latest deploy log https://app.netlify.com/projects/rnst-docs/deploys/6accdf4922ce669b505ec242
😎 Deploy Preview https://deploy-preview-157--rnst-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Co-authored-by: ubax <32908614+ubax@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant