AutoGineer summary
Written by AutoGineer from the skill’s own files, not by the author
This skill provides a structured process for upgrading Expo projects to newer SDK versions. It covers dependency management, clearing caches, handling native module changes via prebuild, and migrating away from deprecated packages like expo-av. It includes critical warnings regarding memory regressions in specific SDK versions and provides best practices for maintaining a healthy Expo project configuration.
What it does
- Provides a step-by-step procedure for upgrading Expo SDKs and fixing dependency issues.
- Outlines how to handle native changes using Continuous Native Generation (CNG) or prebuild.
- Details migration paths for deprecated packages such as expo-av to expo-audio and expo-video.
- Offers guidance on clearing caches for both managed and bare workflows.
- Includes a checklist for breaking changes and post-upgrade housekeeping.
- Provides specific instructions for enabling modern features like the React Compiler.
When to use it
- When you need to upgrade your project to a newer Expo SDK version.
- When you are migrating from deprecated libraries like expo-av to newer alternatives.
- When you encounter dependency conflicts or need to clean up project caches.
- When you need to regenerate native directories in a project using prebuild.
- When you are preparing your project for new architecture or React 19 updates.
Advantages
- Reduces risk by highlighting known memory regressions and version-specific pitfalls.
- Centralizes migration paths for major library changes.
- Promotes project health through automated diagnostics and cache management.
- Ensures consistent configuration by recommending standard housekeeping practices.
Usage examples
- “How do I upgrade my Expo project to the latest SDK?”
- The agent will guide you through running 'npx expo install expo@latest', followed by 'npx expo install --fix', and running 'npx expo-doctor' to verify the environment.
- “I need to migrate from expo-av to expo-audio, what should I do?”
- The agent will provide the new import paths, explain the useAudioPlayer hook, and map the old expo-av methods to the new expo-audio API.
Install
Download the skill as a ZIP:
https://autogineer.com/agent-skills/expo/expo-upgrade/downloadUnzip it into the cross-client skills folder of your project:
mkdir -p .agents/skills && unzip expo-upgrade.zip -d .agents/skills
Documentation by Expo
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 expo install expo@next --fix # install betaStep-by-Step Upgrade Process
If upgrading from SDK 55 or earlier, skip SDK 56 and upgrade directly to SDK 57. Don't use
[email protected]or below. SDK 55 with Hermes V1 enabled, SDK 56, and older SDK 57 releases contain a Hermes V1 memory regression that can drastically increase memory usage when usingreact-native-workletsorreact-native-reanimated.
Upgrade Expo and dependencies
npx expo install expo@latest
npx expo install --fixRun diagnostics:
npx expo-doctorClear caches and reinstall
npx expo export -p ios --clear
rm -rf node_modules .expo
watchman watch-del-allBreaking 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 expo prebuild --cleanThis 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-updateClear derived data for Xcode:
npx expo run:ios --no-build-cacheClear 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 recommendedDelete sdkVersion from
app.jsonto let Expo manage it automaticallyReview 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 expo-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. Upgrade directly to SDK 57 and [email protected] or later. 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 you encounter errors, misleading or outdated information in this skill, report it so Expo can improve:
npx --yes @expo/agent-cli@latest feedback --category skills --subject "expo-upgrade" "<actionable feedback>"Only submit when you have something specific and actionable to report. Include as much relevant context as possible.
If an agent repeatedly fails at an Expo task or the user has to step in, submit a brief report of the task, expected result, and what went wrong using --category evals and the relevant Expo package or command as --subject.
Files
- ATTRIBUTION.mdAdded by AutoGineer811 B
- LICENSELicence file added by AutoGineer1.1 KiB
- SKILL.md7.5 KiB
- agents/openai.yaml373 B
- references/expo-av-to-audio.md3.6 KiB
- references/expo-av-to-video.md4.2 KiB
- references/native-tabs.md3.4 KiB
- references/new-architecture.md2.1 KiB
- references/react-19.md1.8 KiB
- references/react-compiler.md1.6 KiB
- references/react-navigation-to-expo-router.md4.1 KiB
ATTRIBUTION.md
Attribution
This folder is an unmodified copy of the Agent Skill "expo-upgrade", distributed by AutoGineer (https://autogineer.com/agent-skills).
Commit: a9e5bd3fa00b4e61f632e43f85da73aee1942582
Published by: Expo (https://github.com/expo)
Publisher: Expo (https://github.com/expo)
Licence: MIT License (https://spdx.org/licenses/MIT.html)
Licence evidence: declared in the frontmatter ("license: MIT")
Retrieved: 2026-11-07
The skill's own files are unmodified copies. AutoGineer is not affiliated with or endorsed by the author or the publisher.
Files added by AutoGineer
ATTRIBUTION.md: this file, written by AutoGineer
LICENSE: copied from plugins/expo/LICENSE
Requirements and compatibility
Works with: Claude Code, Claude apps, OpenAI Codex, GitHub Copilot, Cursor, Gemini CLI, Kiro, OpenCode, Goose, Amp, Roo Code, JetBrains Junie, Factory Droid, Devin (ex-Windsurf), Mistral Vibe, OpenHands, Letta
“Works with” means the tool reads the open Agent Skills format; a skill written for one tool may use features others lack.
Needs: Needs Node.js
Security
What our scanner noticed· Low risk
- Instructions that use the network
A static scan is not a guarantee. Skills are third-party content: review a skill before you let an agent use it.
Attribution and licence
- Published by
- Expo
- Publisher
- Expo (Official)
- Source
- expo/skills · plugins/expo/skills/expo-upgrade · commit a9e5bd3
- Licence
- MIT License (redistribution allowed)
- LICENSE (added by AutoGineer from plugins/expo/LICENSE)
- ATTRIBUTION.md (written by AutoGineer)
- Synced
AutoGineer is not affiliated with or endorsed by Expo or Expo.
Download ZIP
The ZIP holds the skill’s files, its licence files and an ATTRIBUTION.md. Download expo-upgrade.zip