Repository navigation
Conversation
Driven from Expo's official SDK 58 matrix, applied to the root catalog rather than with `expo install --fix`: every one of the 349 root dependencies is a `catalog:` reference, so letting the CLI pin versions in apps/mobile would have written them twice and broken a convention the repo applies without exception. `expo install --check` and `expo-doctor` then confirm the result (20/20). React and react-dom move to 19.3.0 for the whole monorepo instead of diverging mobile from web, notify and ui -- keeping one React version is what the catalog is for. Router migrations, all from the official SDK 57 to 58 guide: - `initialRouteName` is removed; eight layouts now export `unstable_settings.anchor`. The shared `(home,search,collection,feed)` layout gets one anchor per segment, and its former branch on `user` is dropped: `Stack.Protected` already decides whether `feed` and `collection/(tabs)` are registered at all, so there is nothing left to anchor to. - `Screen` no longer accepts `initialParams`; the two screens under `user/[username]/(follow)` already read `username` from the URL. - The four hand-rolled top-tab navigators drop `createMaterialTopTabNavigator` plus `withLayoutContext` for the ready-made `TopTabs`. - `MaterialTopTabBarProps` replaces `navigation` with `emitter` and `navigateToTab`. React Native 0.88 ships the Strict TypeScript API as the default, which accounts for 52 of the 62 type errors the upgrade surfaced. Those are deferred behind the `react-native-legacy-deep-imports` condition in the mobile tsconfig, for two reasons: an SDK upgrade and a repo-wide type-API migration are separate changes, and one of the 52 is not ours to fix -- @react-native-segmented-control declares `Constructor<NativeMethods>`, and `NativeMethods` no longer exists in 0.88's types, with 2.5.7 the last published version. `types_DEPRECATED` will go away in a later React Native, so this is explicit debt, not a resolution. Nitro was pinned to 0.35.10 by its own catalog range: `^0.35.0` on a 0.x version means `>=0.35.0 <0.36.0`. Its C++ compiles against React Native's internals, so it failed to install its JSI bindings on 0.88 and took MMKV down with it. Both now match what the other SDK 58 apps in this org run on 0.88. The remaining fixes are mechanical: `StyleSheet.NamedStyles` and `ViewToken` are gone from the type surface, 17 `onPress={form.handleSubmit(x)}` handlers no longer satisfy the stricter press signature, and `AndroidImportance` is imported by name so `import/namespace` stops failing to follow expo-notifications' ESM re-export chain. Requires a native rebuild: `expo prebuild --clean` then a device build. The fingerprint changes, so the next release takes the native build path rather than an OTA.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Moves the mobile app from Expo SDK 57 to SDK 58, which brings React Native 0.86.2 to 0.88.1 and React 19.2.3 to 19.3.0.
The dependency half is driven from Expo's official SDK 58 matrix but applied to the root catalog rather than with
expo install --fix. Every one of the 349 root dependencies is acatalog:reference, so letting the CLI pin resolved versions insideapps/mobile/package.jsonwould have declared them in two places and broken a convention the repo applies without a single exception.expo install --checkandexpo-doctorthen verify the outcome, which is the same data the CLI would have used.The code half is the Expo Router navigation rework, plus the mechanical fallout of React Native 0.88's stricter type surface.
Changes
@expo/metro-runtime,expo-asset,expo-build-properties,expo-dev-client,@expo/dom-webview,@expo/fingerprint).reactandreact-domto 19.3.0 for the whole monorepo rather than letting mobile diverge from web, notify and ui.@sentry/react-native7 to 8.28.0. Usage is narrow (init,captureException,addBreadcrumb,captureMessage,wrap) and all of it is stable across the major.react-native-nitro-modules0.35.10 to 0.37.1 andreact-native-mmkvto 4.3.2. Nitro was pinned by its own catalog range:^0.35.0on a 0.x version means>=0.35.0 <0.36.0. Its C++ compiles against React Native's internals, so on 0.88 it failed to install its JSI bindings and took MMKV down with it, which in turn made every route importing MMKV look like it was missing a default export.initialRouteNameis removed from navigators: eight layouts now exportunstable_settings.anchor. The shared(home,search,collection,feed)layout gets one anchor per segment, and its former branch onuseris dropped becauseStack.Protectedalready decides whetherfeedandcollection/(tabs)are registered.Screenno longer acceptsinitialParams; the two screens underuser/[username]/(follow)already readusernamefrom the URL.createMaterialTopTabNavigatorandwithLayoutContextfor the ready-madeTopTabs, andSegmentedControlTabBarmoves fromnavigationtoemitterplusnavigateToTab.expo-router/unstable-native-tabsbecomesexpo-router/native-tabs, andios.enableSceneSupportis removed since SDK 58 includes scene support.StyleSheet.NamedStylesandViewTokenare gone from the type surface, 17onPress={form.handleSubmit(x)}handlers no longer satisfy the stricter press signature, andAndroidImportanceis imported by name soimport/namespacestops failing to follow expo-notifications' ESM re-export chain.react-native-legacy-deep-importscondition in the mobile tsconfig. See Impact.Impact
nx run-many -t typecheck lint test --allpasses on 18 projects, andexpo-doctorreports 20/20 with no skipped dependency checks.expo prebuild --cleanfollowed by a device build is what actually proves this upgrade. Nothing here has been validated at runtime.android.enableMinifyInReleaseBuilds: falsevia expo-build-properties.react-native-gesture-handlermoves from 2.32 to 3.3.0, a major that sits under the bottom sheets and navigation gestures. It is the version the SDK 58 matrix mandates, and it is the most likely source of a runtime regression.@react-native-segmented-control/segmented-controldeclaresConstructor<NativeMethods>andNativeMethodsno longer exists in 0.88's types, with 2.5.7 the last published version.types_DEPRECATEDwill be removed in a later React Native release, so this is explicit debt with a follow-up owed.Test Plan
nx run-many -t typecheck lint test --allpassesnpx expo-doctorreports 20/20expo prebuild --cleansucceeds, then a debug device build installs and launchesFailed to install Nitroerror at startup, and no route reported as missing a default exportdefaultchannel importancecaptureException