Upgrade Expo SDK versions
Add this skill
npx mdskills install sickn33/upgrading-expoComprehensive step-by-step upgrade guidance with good coverage of edge cases and best practices
1---2name: upgrading-expo3description: "Upgrade Expo SDK versions"4source: "https://github.com/expo/skills/tree/main/plugins/upgrading-expo"5risk: safe6---78# Upgrading Expo910## Overview1112Upgrade Expo SDK versions safely, handling breaking changes, dependencies, and configuration updates.1314## When to Use This Skill1516Use this skill when you need to upgrade Expo SDK versions.1718Use this skill when:19- Upgrading to a new Expo SDK version20- Handling breaking changes between SDK versions21- Updating dependencies for compatibility22- Migrating deprecated APIs to new versions23- Preparing apps for new Expo features2425## Instructions2627This skill guides you through upgrading Expo SDK versions:28291. **Pre-Upgrade Planning**: Review release notes and breaking changes302. **Dependency Updates**: Update packages for SDK compatibility313. **Configuration Migration**: Update app.json and configuration files324. **Code Updates**: Migrate deprecated APIs to new versions335. **Testing**: Verify app functionality after upgrade3435## Upgrade Process3637### 1. Pre-Upgrade Checklist3839- Review Expo SDK release notes40- Identify breaking changes affecting your app41- Check compatibility of third-party packages42- Backup current project state43- Create a feature branch for the upgrade4445### 2. Update Expo SDK4647```bash48# Update Expo CLI49npm install -g expo-cli@latest5051# Upgrade Expo SDK52npx expo install expo@latest5354# Update all Expo packages55npx expo install --fix56```5758### 3. Handle Breaking Changes5960- Review migration guides for breaking changes61- Update deprecated API calls62- Modify configuration files as needed63- Update native dependencies if required64- Test affected features thoroughly6566### 4. Update Dependencies6768```bash69# Check for outdated packages70npx expo-doctor7172# Update packages to compatible versions73npx expo install --fix7475# Verify compatibility76npx expo-doctor77```7879### 5. Testing8081- Test core app functionality82- Verify native modules work correctly83- Check for runtime errors84- Test on both iOS and Android85- Verify app store builds still work8687## Common Issues8889### Dependency Conflicts9091- Use `expo install` instead of `npm install` for Expo packages92- Check package compatibility with new SDK version93- Resolve peer dependency warnings9495### Configuration Changes9697- Update `app.json` for new SDK requirements98- Migrate deprecated configuration options99- Update native configuration files if needed100101### Breaking API Changes102103- Review API migration guides104- Update code to use new APIs105- Test affected features after changes106107## Best Practices108109- Always upgrade in a feature branch110- Test thoroughly before merging111- Review release notes carefully112- Update dependencies incrementally113- Keep Expo CLI updated114- Use `expo-doctor` to verify setup115116## Resources117118For more information, see the [source repository](https://github.com/expo/skills/tree/main/plugins/upgrading-expo).119
Full transparency — inspect the skill content before installing.