Upgrades React Native apps to newer versions by applying rn-diff-purge template diffs, updating package.json dependencies, migrating native iOS and Android configuration, resolving CocoaPods and Gradle changes, and handling breaking API updates. Use when upgrading React Native, bumping RN version, updating from RN 0.x to 0.y, or migrating Expo SDK alongside a React Native upgrade.
Detected risks:
The 'upgrading-react-native' skill is designed to streamline and simplify the process of upgrading React Native applications to newer versions. It addresses common challenges developers face when reconciling changes across React Native releases, including breaking API updates, dependency alignment, and native platform configuration differences for both iOS and Android. By leveraging template diffs from the rn-diff-purge repository and providing a structured upgrade workflow, this skill helps reduce manual errors and ensures consistent project updates across versions. It is particularly useful when migrating from older React Native versions to newer releases or when coordinating upgrades alongside Expo SDK changes.
Begin by detecting your app's current React Native version and fetching the template diff for the target version. This guides you in updating package.json, applying native configuration changes, and resolving platform-specific updates.
The skill supports both iOS and Android platforms, handling CocoaPods installations, Gradle updates, and ensuring builds succeed on each platform post-upgrade.
Yes, it includes conditional steps for applying Expo SDK upgrades alongside a React Native version bump, ensuring compatibility between the frameworks.
You should have your current React Native version identified and third-party dependencies reviewed. Manual validation is recommended after applying diffs, and proper build tools must be installed for both platforms.
It guides the process of assessing and updating third-party dependencies, but manual review may be required to address version-specific breaking changes.
Quick Setup:
.claude/skills/Repository
callstackincubator/agent-skills