Upgrading Expo
Overview
Upgrade Expo SDK versions safely, handling breaking changes, dependencies, and configuration updates.
When to Use This Skill
Use this skill when you need to upgrade Expo SDK versions.
Use this skill when:
Upgrading to a new Expo SDK versionHandling breaking changes between SDK versionsUpdating dependencies for compatibilityMigrating deprecated APIs to new versionsPreparing apps for new Expo featuresInstructions
This skill guides you through upgrading Expo SDK versions:
Pre-Upgrade Planning: Review release notes and breaking changesDependency Updates: Update packages for SDK compatibilityConfiguration Migration: Update app.json and configuration filesCode Updates: Migrate deprecated APIs to new versionsTesting: Verify app functionality after upgradeUpgrade Process
1. Pre-Upgrade Checklist
Review Expo SDK release notesIdentify breaking changes affecting your appCheck compatibility of third-party packagesBackup current project stateCreate a feature branch for the upgrade2. Update Expo SDK
# Update Expo CLI
npm install -g expo-cli@latestUpgrade Expo SDK
npx expo install expo@latestUpdate all Expo packages
npx expo install --fix
3. Handle Breaking Changes
Review migration guides for breaking changesUpdate deprecated API callsModify configuration files as neededUpdate native dependencies if requiredTest affected features thoroughly4. Update Dependencies
# Check for outdated packages
npx expo-doctorUpdate packages to compatible versions
npx expo install --fixVerify compatibility
npx expo-doctor
5. Testing
Test core app functionalityVerify native modules work correctlyCheck for runtime errorsTest on both iOS and AndroidVerify app store builds still workCommon Issues
Dependency Conflicts
Use expo install instead of npm install for Expo packagesCheck package compatibility with new SDK versionResolve peer dependency warningsConfiguration Changes
Update app.json for new SDK requirementsMigrate deprecated configuration optionsUpdate native configuration files if neededBreaking API Changes
Review API migration guidesUpdate code to use new APIsTest affected features after changesBest Practices
Always upgrade in a feature branchTest thoroughly before mergingReview release notes carefullyUpdate dependencies incrementallyKeep Expo CLI updatedUse expo-doctor to verify setupResources
For more information, see the source repository.