Preface¶
When upgrading a React Native project together with the Expo SDK, the version jump is often more than just editing package.json: after running expo install --fix, peer dependencies may not match, deprecated packages may still be in use, and Metro/Babel configuration may diverge from SDK defaults. Add iOS/Android caches or prebuild on top of that, and it’s easy to see different errors locally and in CI. You can figure it out by reading changelogs and forums, but the steps are scattered and agents often miss cross-version concerns such as Hermes, the New Architecture, or expo-av migration.
expo-upgrade is an official Agent Skill maintained by the Expo team in the expo/skills repository (MIT, current skill metadata version 1.0.0). It packages SDK upgrades, dependency conflict handling, deprecated package replacement, and cache cleanup into an agent-executable checklist and step-by-step instructions. Documentation and the CLI remain the source of truth; the Skill ensures the agent applies those rules in the same order.
What is this¶
- Name:
expo-upgrade - Description: Guidelines for upgrading Expo SDK versions and fixing dependency issues
- Source: plugins/expo/skills/expo-upgrade
- Ownership: A Framework (open source) Skill in the official Expo Skills suite, alongside
expo-overview,expo-router, etc. For complex tasks, you can loadexpo-overviewfirst and then route to this Skill.
Core functionality¶
The following describes the capability scope explicitly documented in the Skill and verifiable.
Step-by-step upgrade process¶
The official recommended order is roughly:
- Upgrade Expo and dependencies
- Run
npx expo-doctorfor diagnostics - Clear caches and reinstall
node_modulesas needed
Stable release example:
npx expo install expo@latest
npx expo install --fix
npx expo-doctor
npx expo export -p ios --clear
rm -rf node_modules .expo
watchman watch-del-all
For Beta/Preview, use the .preview suffix (e.g., 55.0.0-preview.2) and install via @next; you can check whether expoVersion contains -preview via the exp.host API. Install beta:
npx expo install expo@next --fix
The Skill also emphasizes version jumps and Hermes: when upgrading from SDK 55 or earlier, skip SDK 56 and upgrade directly to SDK 57, and do not use expo@57.0.8 or earlier; SDK 55 with Hermes V1 enabled, SDK 56, and earlier SDK 57 when used with react-native-worklets or react-native-reanimated have a Hermes V1 memory regression, so upgrade to expo@57.0.9 or later.
Per-SDK topic references¶
The Skill mounts per-version migration notes via references/, for example:
| Reference file | Corresponding topic |
|---|---|
react-19.md |
SDK +54: React 19 (useContext → use, Context.Provider → Context, removal of forwardRef, etc.) |
new-architecture.md |
SDK +53: New Architecture migration |
react-compiler.md |
SDK +54: React Compiler configuration and migration |
native-tabs.md |
SDK +55: Native tabs (Icon/Label/Badge via NativeTabs.Trigger.*) |
expo-av-to-audio.md / expo-av-to-video.md |
SDK +55: expo-av → expo-audio / expo-video |
react-navigation-to-expo-router.md |
SDK +56: migrate @react-navigation/* to expo-router entry (codemod + manual mapping) |
When encountering corresponding breaking changes, the agent should load these references rather than only changing version numbers.
Breaking changes and native workflows¶
The checklist includes: checking the release notes for removed APIs, updating moved imports, reviewing native module changes that require prebuild, and testing camera/audio-video and navigation.
Determine the project form first: if there is no ios/ or android/ directory in the project root, the project uses Continuous Native Generation (CNG), native projects are generated at build time, and you can skip prebuild and the entire “bare workflow cache clearing” section.
If the upgrade requires native changes:
npx expo prebuild --clean
This regenerates the ios and android directories; confirm that the project is not a bare workflow that should not be overwritten.
When ios/ or android/ exists, the Skill lists additional steps: on the iOS side, pod install --repo-update and npx expo run:ios --no-build-cache; on the Android side, ./gradlew clean.
Deprecated packages, configuration, and housekeeping¶
The Skill provides a deprecated package mapping (e.g., expo-av → expo-audio / expo-video, expo-permissions → per-package permission APIs, expo-app-loading → expo-splash-screen, etc.), and requires changing code before removing old packages; expo-av migration requires replacing Audio.Sound / Audio.Recording / Video with useAudioPlayer, useAudioRecorder, VideoView + useVideoPlayer.
Other maintenance items include:
- Read the target SDK’s Expo changelog
- Bump
docs.expo.dev/versions/links in files likeAGENTS.mdto the new SDK - Install
react-native-workletsfor SDK 54+ (required by Reanimated); you can add"experiments": { "reactCompiler": true }inapp.json - Remove
sdkVersionfromapp.json; let Expo manage it - Keep
expo-constantsas a direct dependency when usingexpo-router - Check
expo.install.excludeinpackage.jsonand remove outdatedpatches/ - Starting with SDK +53 PostCSS: remove unnecessary
autoprefixer, preferpostcss.config.mjs - Metro: starting with SDK +53/+54, multiple resolver/import features are enabled by default; Expo webpack is deprecated, migrate to Expo Router + Metro web
The New Architecture is enabled by default, and "newArchEnabled": true in app.json is no longer needed; Expo Go only supports the New Architecture starting with SDK +53. The Skill explicitly states not to guide users to toggle Hermes V1 switches on their own — deviating from SDK defaults is not supported.
Feedback¶
If you encounter errors or outdated content in the Skill, you can submit actionable feedback:
npx --yes submit-expo-feedback@latest --category skills --subject "expo-upgrade" "<actionable feedback>"
If the agent repeatedly fails and requires human intervention, the official recommendation is to switch to the expo-skill-feedback skill’s eval-candidate process instead of repeating the above command.
Installation and activation¶
Expo Skills can be installed via the plugin marketplace or the skills CLI; expo-upgrade is included in the expo/skills repository.
Cursor, OpenCode, GitHub Copilot, Windsurf, etc. (skills CLI):
Run in the project root:
npx skills@latest add expo/skills --skill '*'
If you only want to install all Expo skills without binding to a specific agent, the above command is sufficient; you can also add --agent <agent> to specify the target. After installation, restart or refresh the agent session so it can discover SKILL.md.
Update:
npx skills@latest update
For a single skill:
npx skills@latest update expo-upgrade
Claude Code (official plugin marketplace):
claude plugin install expo@claude-plugins-official
Or within Claude Code: /plugin install expo@claude-plugins-official.
Codex (OpenAI curated marketplace):
codex plugin add expo@openai-curated
Or install expo in Codex /plugins.
Claude Code and Codex plugin installations are updated via their respective marketplaces; CLI installations use npx skills@latest update.
Typical usage¶
After installation and session refresh, trigger with natural language. Examples from the official expo/skills README include:
- “Help me upgrade this app to the latest Expo SDK.”
The agent will choose expo-upgrade based on the task description and the skill’s description, then follow the steps in the Skill to perform installation, doctor, cache clearing, prebuild decision, and deprecated package checks; when dealing with topics from SDK 53–56, it should combine migration docs under references/.
It can be used together with the Expo MCP server: the MCP provides live capabilities like reading docs and npx expo install, EAS, etc.; the Skill specifies which constraints and order must be followed during upgrades. The expo plugin automatically configures MCP for Claude Code/Codex; for other agents, see the official MCP setup guide.
Applicable scenarios and notes¶
Who it’s for
- Developers maintaining Expo / React Native apps and needing cross-multiple SDK minor upgrades
- Those upgrading within agents like Cursor, aiming to reduce missed steps, missed peer deps, missed
expo-av/ Router migrations - Teams needing to unify documentation version links and post-upgrade checklists in
AGENTS.md
Limitations and cautions
- The Skill is instructional text, not a replacement for
expo-doctor, changelogs, and real device testing; audio/video, navigation, and native modules must still be self-tested per the Breaking Changes Checklist - Hermes V1 and SDK 57 version constraints are based on the Skill body; do not use unsupported Worklets Bundle Mode as a production solution
- The CNG and bare workflow cache clearing/prebuild branches differ; running
prebuild --cleanincorrectly may not match project expectations - Content evolves with Expo releases; report issues via the official feedback or
expo-skill-feedback
Closing¶
expo-upgrade turns Expo SDK upgrades from “read the docs + luck” into agent-followable steps, per-version topics, and a housekeeping checklist, making it the preferred Framework Skill for upgrade tasks. Official path: github.com/expo/skills/tree/main/plugins/expo/skills/expo-upgrade; for suite overview and installation instructions, see github.com/expo/skills and docs.expo.dev/skills/.