Expo: SDK upgrade
Read upstream expo-upgrade via expo-skills-library (overlays O5, O14 and O15 apply). Always work on a branch and end with a draft PR. Upgrading an existing project needs the owner's OK. source /home/box/expo-builder/env.sh.
57 → 58
- Run
expo-bot-preflight, and record the fingerprint plus thetsc/lint baseline. - pnpm first:
packageManagerand eas.jsonpnpm= the target image's pnpm (11.27.0 onsdk-58); move package.jsonpnpm.*settings intopnpm-workspace.yaml; delete an.npmrcwithlegacy-peer-deps; while 58 is beta,overrides.react-native= the RC the target expo expects (pnpm view expo@next dependencies/ template pin). pnpm expo install expo@next --fixwhile 58 is beta (expo@^58once stable). Then runpnpm install,pnpm why react-native(one version, equal tobundledNativeModules.json) andpnpm peers check.- Breaking changes: Strict TS API (refs become instance types;
react-native-legacy-deep-importsopt-out only as a stopgap, gone after RN 0.88); RN removals (InteractionManager,Touchable,Modal animated, severalStatusBarprops); libraries (expo-router/react-navigationimports and custom navigators,expo-sqlitedrops libSQL,@expo/ui<Host>alignment and stack spacing,AppMetrics→Observe); tooling (NODE_ENV handling, Node ≥22.13); native (a committedios/must migrate to the SceneDelegate life cycle; CNG projects check withpnpm expo prebuild --clean --no-install, never commit the output); R8 on for Android release. - Switch eas.json images to the SDK 58 values (
expo-builder-reference§4). expo-verify-change; expect one fingerprint miss (balanced preset), then onedevelopment-simulatorbuild plusexpo-cloud-sim-verify(budget).- Draft PR with the checklist; say plainly if the target is a beta, and that OTA can't cross the runtime change (every channel needs new builds).
When SDK 58 goes stable (pnpm view expo dist-tags → latest ≥ 58)
Follow-up PR per project: remove the react-native override; pnpm expo install expo@^58 --fix (RN → stable 0.88.x); pnpm install, pnpm why react-native (one version); expo-verify-change (doctor, export, frozen install).
Also switch the scaffold to the stable template; the default@sdk-58 tag works either way.