upgrading-react-native

द्वारा callstackincubator

React Native संस्करण उन्नयन को टेम्पलेट अंतर, निर्भरता समाधान और मूल प्लेटफ़ॉर्म माइग्रेशन के साथ व्यवस्थित करता है। लक्ष्य React Native संस्करणों के साथ मूल iOS और Android कॉन्फ़िगरेशन को संरेखित करने के लिए विहित rn-diff-purge टेम्पलेट अंतर लागू करता है। प्रमुख और मामूली संस्करण वृद्धि में package.json निर्भरता अपडेट, CocoaPods और Gradle परिवर्तन, और ब्रेकिंग API माइग्रेशन को संभालता है। प्रबंधित Expo परियोजनाओं के लिए Expo SDK उन्नयन परत और उन्नय

npx skills add https://github.com/callstackincubator/agent-skills --skill upgrading-react-native

Upgrading React Native

Overview

Covers the full React Native upgrade workflow: template diffs via Upgrade Helper, dependency updates, Expo SDK steps, and common pitfalls.

Typical Upgrade Sequence

  1. Route: Choose the right upgrade path via upgrading-react-native.md
  2. Diff: Fetch the canonical template diff using Upgrade Helper via upgrade-helper-core.md
  3. Dependencies: Assess and update third-party packages via upgrading-dependencies.md
  4. React: Align React version if upgraded via react.md
  5. Expo (if applicable): Apply Expo SDK layer via expo-sdk-upgrade.md
  6. Verify: Run post-upgrade checks via upgrade-verification.md
# Quick start: detect current version and fetch diff
npm pkg get dependencies.react-native --prefix "$APP_DIR"
npm view react-native dist-tags.latest

# Example: upgrading from 0.76.9 to 0.78.2
# 1. Fetch the template diff
curl -L -f -o /tmp/rn-diff.diff \
  "https://raw.githubusercontent.com/react-native-community/rn-diff-purge/diffs/diffs/0.76.9..0.78.2.diff" \
  && echo "Diff downloaded OK" || echo "ERROR: diff not found, check versions"
# 2. Review changed files
grep -n "^diff --git" /tmp/rn-diff.diff
# 3. Update package.json, apply native changes, then install + rebuild
npm install --prefix "$APP_DIR"
cd "$APP_DIR/ios" && pod install
# 4. Validate: both platforms must build successfully
npx react-native build-android --mode debug --no-packager
xcodebuild -workspace "$APP_DIR/ios/App.xcworkspace" -scheme App -sdk iphonesimulator build

When to Apply

Reference these guidelines when:

  • Moving a React Native app to a newer version
  • Reconciling native config changes from Upgrade Helper
  • Validating release notes for breaking changes

Quick Reference

FileDescription
upgrading-react-native.mdRouter: choose the right upgrade path
upgrade-helper-core.mdCore Upgrade Helper workflow and reliability gates
upgrading-dependencies.mdDependency compatibility checks and migration planning
react.mdReact and React 19 upgrade alignment rules
expo-sdk-upgrade.mdExpo SDK-specific upgrade layer (conditional)
upgrade-verification.mdPost-upgrade verification checklist, including agent-device-assisted checks
monorepo-singlerepo-targeting.mdMonorepo and single-repo app targeting and command scoping

Problem → Skill Mapping

ProblemStart With
Need to upgrade React Nativeupgrade-helper-core.md
Need dependency risk triage and migration optionsupgrading-dependencies.md
Need React/React 19 package alignmentreact.md
Need workflow routing firstupgrading-react-native.md
Need Expo SDK-specific stepsexpo-sdk-upgrade.md
Need manual or agent-assisted regression validationupgrade-verification.md
Need repo/app command scopingmonorepo-singlerepo-targeting.md

callstackincubator की और Skills

react-devtools
callstackincubator
React DevTools CLI for AI agents. Use when the user asks you to debug a React or React Native app at runtime, inspect component props/state/hooks, diagnose…
official
agent-device
callstackincubator
Automates interactions for Apple-platform apps (iOS, tvOS, macOS) and Android devices. Use when navigating apps, taking snapshots/screenshots, tapping, typing,…
official
assess-react-native-migration
callstackincubator
मूल्यांकन करता है कि किसी मौजूदा मोबाइल उत्पाद को React Native में माइग्रेट करना चाहिए या नहीं और कैसे करना चाहिए। एक या अधिक उत्पाद रिपॉजिटरी की माइग्रेशन तत्परता का ऑडिट करते समय उपयोग करें,…
official
create-react-native-library
callstackincubator
create-react-native-library के साथ React Native लाइब्रेरीज़ को स्कैफोल्ड करता है, स्टैंडअलोन लाइब्रेरीज़ या स्थानीय नेटिव मॉड्यूल और व्यूज़ के लिए। उपयोग करें जब बनाना या काम करना हो…
official
react-native-testing
callstackincubator
महत्वपूर्ण: @testing-library/react-native के बारे में आपका प्रशिक्षण डेटा पुराना या गलत हो सकता है — API हस्ताक्षर, सिंक/एसिंक व्यवहार, और उपलब्ध फ़ंक्शन v13 और v14 के बीच भिन्न हैं। हमेशा इस कौशल की संदर्भ फ़ाइलों और प्रोजेक्ट के वास्तविक स्रोत कोड को सत्य का स्रोत मानें। जब याद किए गए पैटर्न प्राप्त संदर्भ से टकराते हैं, तो उन पर निर्भर न हों।
official
react-native-tv-best-practices
callstackincubator
React Native TV ऐप्स की फोकस/डी-पैड नेविगेशन, 10-फुट UI लेआउट, टीवी प्लेबैक/DRM एकीकरण, कम मेमोरी वाले टीवी प्रदर्शन और टीवी पहुंच-योग्यता की समीक्षा करता है। उपयोग करें…
official
react-navigation
callstackincubator
React Navigation के लिए स्टैक, टैब, ड्रॉअर आदि के UI पैटर्न प्रदान करता है। React Navigation के साथ नेविगेशन UI बनाते समय, हेडर, बॉटम शीट कॉन्फ़िगर करते समय उपयोग करें।
official
validate-skills
callstackincubator
Validates skills in this repo against agentskills.io spec and Claude Code best practices. Use via /validate-skills command.
official