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-nativeUpgrading 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
- Route: Choose the right upgrade path via upgrading-react-native.md
- Diff: Fetch the canonical template diff using Upgrade Helper via upgrade-helper-core.md
- Dependencies: Assess and update third-party packages via upgrading-dependencies.md
- React: Align React version if upgraded via react.md
- Expo (if applicable): Apply Expo SDK layer via expo-sdk-upgrade.md
- 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
| File | Description |
|---|---|
| upgrading-react-native.md | Router: choose the right upgrade path |
| upgrade-helper-core.md | Core Upgrade Helper workflow and reliability gates |
| upgrading-dependencies.md | Dependency compatibility checks and migration planning |
| react.md | React and React 19 upgrade alignment rules |
| expo-sdk-upgrade.md | Expo SDK-specific upgrade layer (conditional) |
| upgrade-verification.md | Post-upgrade verification checklist, including agent-device-assisted checks |
| monorepo-singlerepo-targeting.md | Monorepo and single-repo app targeting and command scoping |
Problem → Skill Mapping
| Problem | Start With |
|---|---|
| Need to upgrade React Native | upgrade-helper-core.md |
| Need dependency risk triage and migration options | upgrading-dependencies.md |
| Need React/React 19 package alignment | react.md |
| Need workflow routing first | upgrading-react-native.md |
| Need Expo SDK-specific steps | expo-sdk-upgrade.md |
| Need manual or agent-assisted regression validation | upgrade-verification.md |
| Need repo/app command scoping | monorepo-singlerepo-targeting.md |
callstackincubator की और Skills
agent-device
callstackincubator
iOS और Android ऐप इंटरैक्शन को स्नैपशॉट-आधारित खोज और सेलेक्टर-संचालित रीप्ले के साथ स्वचालित करें। iOS सिम्युलेटर/डिवाइस और Android एमुलेटर/डिवाइस को सपोर्ट करता है, जिसमें सत्र-बद्ध ऑटोमेशन, मल्टी-टेनेंट रिमोट डेमन मोड और QA वर्कफ़्लो के लिए डिवाइस-स्कोप आइसोलेशन शामिल है। मुख्य कमांड: UI खोज के लिए रेफ़ के साथ स्नैपशॉट, इंटरैक्शन के लिए प्रेस/फ़िल/स
official
dogfood
callstackincubator
iOS/Android पर एजेंट-डिवाइस के साथ एक मोबाइल ऐप को व्यवस्थित रूप से एक्सप्लोर और परीक्षण करें ताकि बग, UX समस्याएं और अन्य समस्याएं खोजी जा सकें। जब dogfood, QA,… के लिए कहा जाए तो उपयोग करें।
official
react-devtools
callstackincubator
एजेंट-डिवाइस से React Native कंपोनेंट ट्री का निरीक्षण और प्रोफाइलिंग करें। React Native प्रदर्शन, प्रोफाइलिंग, प्रॉप्स, स्टेट, हुक्स, रेंडर कारण, धीमी… के लिए उपयोग करें।
official
react-devtools
callstackincubator
React DevTools CLI एआई एजेंटों के लिए। उपयोग तब करें जब उपयोगकर्ता आपसे रनटाइम पर React या React Native ऐप को डीबग करने, कंपोनेंट प्रॉप्स/स्टेट/हुक्स का निरीक्षण करने, निदान करने के लिए कहे…
official
github
callstackincubator
gh CLI के माध्यम से GitHub वर्कफ़्लो स्वचालन, पुल रिक्वेस्ट, स्टैक्ड PR और रिपॉजिटरी प्रबंधन के लिए। स्टैक्ड PR मर्ज वर्कफ़्लो प्रदान करता है: पहले PR को स्क्वैश-मर्ज करें, फिर चेन में प्रत्येक बाद के PR के लिए रीबेस और बेस ब्रांच अपडेट करें। मल्टी-PR मर्ज के दौरान मूक विफलताओं को रोकने के लिए संघर्ष पहचान और मैन्युअल समाधान संकेत शामिल हैं। मुख्य gh CLI संचालन को कवर करता है: PR निर्माण, स्थिति जाँच,
official
github-actions
callstackincubator
React Native iOS सिम्युलेटर और Android एमुलेटर क्लाउड बिल्ड के लिए GitHub Actions वर्कफ़्लो पैटर्न, जिनमें डाउनलोड करने योग्य आर्टिफैक्ट शामिल हैं। CI बिल्ड सेट अप करते समय उपयोग करें…
official
react-native-best-practices
callstackincubator
React Native ऐप्स के लिए संरचित प्रदर्शन अनुकूलन संदर्भ, जिसमें FPS, बंडल आकार, TTI और मेमोरी शामिल हैं। 9 JavaScript/React गाइड (प्रोफाइलिंग, सूचियाँ, एनिमेशन, मेमोरी), 9 नेटिव ऑप्टिमाइज़ेशन गाइड (Turbo Modules, थ्रेडिंग, प्रोफाइलिंग), और 9 बंडलिंग गाइड (ट्री शेकिंग, कोड स्प्लिटिंग, आकार विश्लेषण) में व्यवस्थित। प्रत्येक संदर्भ त्वरित पैटर्न/कमांड, प्रभाव रेटिंग (CRITICAL/HIGH/MEDIUM), और
official
react-native-brownfield-migration
callstackincubator
iOS या Android के मूल ऐप्स को React Native या Expo में माइग्रेट करने के लिए एक क्रमिक अपनाने की रणनीति प्रदान करता है, जिसमें @callstack/react-native-brownfield का उपयोग किया जाता है।
official