Upgrading expo

From eddiebelaval/squire · View interactive version

Upgrading expo is an AI agent skill from the GitHub repository eddiebelaval/squire. Guidelines for upgrading Expo SDK versions and fixing dependency issues. Covers breaking changes, deprecated packages, and migration paths.

How to use this skill

Skill file

Upgrading Expo

Core Workflows

Workflow 1: Primary Action

  1. Analyze the input and context
  2. Validate prerequisites are met
  3. Execute the core operation
  4. Verify the output meets expectations
  5. Report results

Guidelines for upgrading Expo SDK versions and fixing dependency issues.

References

Step-by-Step Upgrade Process

  1. Upgrade Expo and dependencies
npx expo install expo@latest
npx expo install --fix
  1. Run diagnostics: npx expo-doctor
  1. Clear caches and reinstall
npx expo export -p ios --clear
rm -rf node_modules .expo
watchman watch-del-all

Breaking Changes Checklist

Prebuild for Native Changes

If upgrading requires native changes:

npx expo 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

Housekeeping

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 |

Removing patches

Check if there are any outdated patches in the patches/ directory. Remove them if they are no longer needed.

Postcss

Metro

Remove redundant metro config options:

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.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.