Capabilities
Beta/Preview Releases
Beta versions use .preview suffix (e.g., 55.0.0-preview.2), published…
Prebuild for Native Changes
First check if ios/ and android/ directories exist in the project
Clear caches for bare workflow
Deprecated Packages
When migrating deprecated packages, update all code usage before…
Getting started
Full instructionsExample command
Beta/Preview Releases
npx --yes @expo/agent-cli@latest install expo@next --fix # install betaInstructions: SKILL.mdv1.0.12
References
- ./references/react-19.md -- SDK +54: React 19 changes (useContext → use, Context.Provider → Context, forwardRef removal)
- ./references/new-architecture.md -- SDK +53: New Architecture migration guide
- ./references/react-compiler.md -- SDK +54: React Compiler setup and migration guide
- ./references/native-tabs.md -- SDK +55: Native tabs changes (Icon/Label/Badge now accessed via NativeTabs.Trigger.*)
- ./references/expo-av-to-audio.md -- SDK +55: Migrate audio playback and recording from expo-av to expo-audio
- ./references/expo-av-to-video.md -- SDK +55: Migrate video playback from expo-av to expo-video
- ./references/react-navigation-to-expo-router.md -- SDK +56: Migrate
@react-navigation/*imports toexpo-routerentry points (codemod + manual mapping)
Beta/Preview Releases
Beta versions use .preview suffix (e.g., 55.0.0-preview.2), published under @next tag.
Check if latest is beta: https://exp.host/--/api/v2/versions (look for -preview in expoVersion)
npx --yes @expo/agent-cli@latest install expo@next --fix # install beta
Step-by-Step Upgrade Process
If upgrading from SDK 55 or earlier, skip SDK 56 and upgrade to the latest stable Expo SDK. SDK 56 contains a Hermes V1 memory regression that can drastically increase memory usage when using
react-native-workletsorreact-native-reanimated.
- Upgrade Expo and dependencies
npx --yes @expo/agent-cli@latest install expo@latest
npx --yes @expo/agent-cli@latest install --fix
-
Run diagnostics:
npx --yes @expo/agent-cli@latest doctor -
Clear caches and reinstall
npx --yes @expo/agent-cli@latest export -p ios --clear
rm -rf node_modules .expo
watchman watch-del-all
Breaking Changes Checklist
- Check for removed APIs in release notes
- Update import paths for moved modules
- Review native module changes requiring prebuild
- Test all camera, audio, and video features
- Verify navigation still works correctly
Prebuild for Native Changes
First check if ios/ and android/ directories exist in the project. If neither directory exists, the project uses Continuous Native Generation (CNG) and native projects are regenerated at build time — skip this section and "Clear caches for bare workflow" entirely.
If upgrading requires native changes:
npx --yes @expo/agent-cli@latest prebuild --clean
This regenerates the ios and android directories. Ensure the project is not a bare workflow app before running this command.
Clear caches for bare workflow
These steps only apply when ios/ and/or android/ directories exist in the project:
- Clear the cocoapods cache for iOS:
cd ios && pod install --repo-update - Clear derived data for Xcode:
npx --yes @expo/agent-cli@latest run:ios --no-build-cache - Clear the Gradle cache for Android:
cd android && ./gradlew clean
Housekeeping
- Review release notes for the target SDK version at https://expo.dev/changelog
- Update versioned docs links in agent instruction files (
AGENTS.md). The default template links tohttps://docs.expo.dev/versions/v<version>/. Search fordocs.expo.dev/versions/and bump each link to the new SDK version. - If using Expo SDK 54 or later, ensure react-native-worklets is installed — this is required for react-native-reanimated to work.
- Enable React Compiler in SDK 54+ by adding
"experiments": { "reactCompiler": true }to app.json — it's stable and recommended - Delete sdkVersion from
app.jsonto let Expo manage it automatically - Review formerly implicit packages such as
@babel/core,babel-preset-expo, andexpo-constantsindividually instead of removing them wholesale. Keep any package that an installed dependency declares as a required peer. - Keep
expo-constantsas a direct dependency wheneverexpo-routeris installed. Expo Router imports it and declares it as a required peer; relying on a transitive copy can break native autolinking outside Expo Go. - After removing any dependency, immediately run
npx --yes @expo/agent-cli@latest doctorand restore anything it reports as a missing required peer. - If the babel.config.js only contains 'babel-preset-expo', delete the file
- If the metro.config.js only contains expo defaults, delete the file
Deprecated Packages
| Old Package | Replacement |
|---|---|
expo-av |
expo-audio and expo-video |
expo-permissions |
Individual package permission APIs |
@expo/vector-icons |
expo-symbols (for SF Symbols) |
AsyncStorage |
expo-sqlite/localStorage/install |
expo-app-loading |
expo-splash-screen |
| expo-linear-gradient | experimental_backgroundImage + CSS gradients in View |
When migrating deprecated packages, update all code usage before removing the old package. For expo-av, consult the migration references to convert Audio.Sound to useAudioPlayer, Audio.Recording to useAudioRecorder, and Video components to VideoView with useVideoPlayer.
expo.install.exclude
Check if package.json has excluded packages:
{
"expo": { "install": { "exclude": ["react-native-reanimated"] } }
}
Exclusions are often workarounds that may no longer be needed after upgrading. Review each one.
Removing patches
Check if there are any outdated patches in the patches/ directory. Remove them if they are no longer needed.
Postcss
autoprefixerisn't needed in SDK +53. Remove it from dependencies and checkpostcss.config.jsorpostcss.config.mjsto remove it from the plugins list.- Use
postcss.config.mjsin SDK +53.
Metro
Remove redundant metro config options:
- resolver.unstable_enablePackageExports is enabled by default in SDK +53.
experimentalImportSupportis enabled by default in SDK +54.EXPO_USE_FAST_RESOLVER=1is removed in SDK +54.- cjs and mjs extensions are supported by default in SDK +50.
- Expo webpack is deprecated, migrate to Expo Router and Metro web.
Hermes engine v1
Hermes V1 is the default on SDK 56 and later. SDK 55 apps using Hermes V1, all SDK 56 apps, and SDK 57 apps before [email protected] may encounter a memory regression when importing react-native-worklets or react-native-reanimated. SDK 57 also had a separate regression that slowed startup in development builds. If staying on SDK 57, use [email protected] or later for both fixes (see the SDK 57 release notes). Do not recommend Worklets Bundle Mode as a production workaround; it is unsupported and experimental and may not work as expected.
Do not guide users to opt in to or out of Hermes V1. Changing the Hermes version from the SDK default is unsupported and has significant build and dependency-management caveats.
New Architecture
The new architecture is enabled by default, the app.json field "newArchEnabled": true is no longer needed as it's the default. Expo Go only supports the new architecture as of SDK +53.
Submitting Feedback
If this skill has an error, or misleading or outdated information, tell the user and offer to report it to Expo. A report is optional, and the user decides. Do not send a report before the user agrees.
The feedback command of the agent CLI sends a report. Its --help lists the categories (skills with the subject "expo-upgrade", agent-cli for a problem with the agent CLI, evals when an agent repeatedly fails at an Expo task) and the data that a report sends. Show the user the message, and tell the user that the report also carries project and environment details. If you cannot ask the user, put the command with your message in your final summary, so the user can send it. Do not include secrets or personal data.
Explore more skills
Browse all- Expo UIBuild native UI with the @expo/ui package: real SwiftUI on iOS and Jetpack Compose on Android. Default to @expo/ui for…
- Expo RouterNavigation and routing for Expo Router. Covers file-based routes, groups and dynamic routes, folder organization, Link…
- Eas App StoresBuild and submit iOS and Android apps with EAS to TestFlight, the App Store, or Google Play. Supports Expo and other…
- Eas SimulatorRun and control a user's app on a remote iOS/Android simulator with Expo Simulators (also called EAS Simulator). Read…
- Expo Native UIBuild beautiful, native-feeling Expo screens. Covers Apple HIG styling, semantic colors, native controls, SF Symbols,…
- Web to NativeMigrate an existing web React app to a native iOS/Android app with Expo. Use when the user wants to turn a website into…
Security
Reviews (0)
More from Expo
View source →Frequently asked questions about expo-upgrade
What does the expo-upgrade skill do?
Guidelines for upgrading Expo SDK versions and fixing dependency issues It's a reusable SKILL.md instruction set that loads into your AI coding assistant on demand, no prompt engineering, no copy-pasting every session.
How do I install the expo-upgrade skill?
Run `npx @skills-hub-ai/cli install expo-upgrade` from your terminal. The CLI writes the SKILL.md to the correct location for your AI tool (e.g. ~/.claude/skills/expo-upgrade/ for Claude Code or ~/.cursor/skills/ for Cursor with --target cursor) and adds it to your project's .skills.json lockfile.
Which AI tools does expo-upgrade work with?
expo-upgrade runs in Claude Code. It follows the open Agent Skills standard (SKILL.md), so the same skill works in every supported tool without modification.
Is the expo-upgrade skill free?
Yes. Every skill on skills-hub.ai is free and open-source. There are no premium tiers, paywalls, or usage limits. You only pay for whatever AI assistant you're already using.
How do I use expo-upgrade after installing it?
In Claude Code, type `/expo-upgrade` (or whatever slash command the skill registers) and the AI follows the skill's instructions immediately. You can also reference it by name in natural language, your AI loads the skill into context when relevant.
Can I share the expo-upgrade skill with my team?
Yes. Commit your project's .skills.json lockfile and teammates run `npx @skills-hub-ai/cli install` (no args) to install every skill at the exact version you pinned. Organization-scoped installs work via skills-hub.ai organizations.
Badge for your README
Show that this skill is on Skills Hub. The badge links back to this page and shows the live install count.
[](https://skills-hub.ai/skills/expo-upgrade)<a href="https://skills-hub.ai/skills/expo-upgrade"><img src="https://skills-hub.ai/api/badges/skill/expo-upgrade" alt="Install on Skills Hub"></a>More options in the badge docs.