CommunityCodierung & Entwicklunggithub.com

Upgrade React Native

Ermöglicht das Upgrade von React Native Apps auf neuere Versionen durch Anwendung von rn-diff-purge Template-Diffs, Aktualisierung von package.json-Abhängigkeiten, Migration nativer iOS- und Android-Konfigurationen sowie Behandlung von Breaking Changes.

Was ist Upgrade React Native?

Diese Fähigkeit (Skill) deckt den vollständigen Upgrade-Workflow für React Native Apps ab: von der Auswahl des richtigen Upgrade-Pfades über das Anwenden von Template-Diffs mittels Upgrade Helper, die Aktualisierung von Drittanbieter-Abhängigkeiten und die Migration nativer iOS (CocoaPods) und Android (Gradle) Konfigurationen bis hin zur Behandlung von Breaking Changes in der API. Sie unterstützt sowohl reine React Native Upgrades als auch kombinierte Expo SDK Upgrades. Der Skill ist für Entwickler und KI-Agenten gedacht, die eine strukturierte, fehlerresistente Methode benötigen, um React Native Versionen zu aktualisieren (z.B. von 0.76.9 auf 0.78.2). Der Ablauf umfasst Schritte wie das Herunterladen des Template-Diffs über curl, das Aktualisieren der package.json, das Ausführen von pod install und die Validierung durch Build-Kommandos für beide Plattformen. Die Fähigkeit verweist auf spezifischere Sub-Skills für Upgrade Helper, Abhängigkeiten, React-Versionen, Expo SDK-Upgrades und Nach-Upgrade-Prüfungen.

Funktioniert mit~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/callstackincubator/agent-skills/tree/main/skills/upgrading-react-native

Installed? Explore more Codierung & Entwicklung skills: steipete/bluebubbles, steipete/eightctl, steipete/blucli · View all 6 →

In Ihrer bevorzugten KI fragen

Öffnet einen neuen Chat, in dem dieser Agent-Skill bereits geladen ist.

Dokumentation

Upgrade von React Native

Überblick

Deckt den vollständigen React Native Upgrade-Workflow ab: Template-Diffs via Upgrade Helper, Abhängigkeitsaktualisierungen, Expo SDK-Schritte und häufige Fallstricke.

Typische Upgrade-Reihenfolge

  1. Route: Wähle den richtigen Upgrade-Pfad via upgrading-react-native.md
  2. Diff: Rufe den kanonischen Template-Diff mit Upgrade Helper ab via upgrade-helper-core.md
  3. Abhängigkeiten: Überprüfe und aktualisiere Drittanbieter-Pakete via upgrading-dependencies.md
  4. React: Gleiche die React-Version an, falls sie aktualisiert wurde via react.md
  5. Expo (falls zutreffend): Wende die Expo SDK-Schicht an via expo-sdk-upgrade.md
  6. Überprüfung: Führe Post-Upgrade-Prüfungen durch via upgrade-verification.md
# Schnellstart: Aktuelle Version ermitteln und Diff abrufen
npm pkg get dependencies.react-native --prefix "$APP_DIR"
npm view react-native dist-tags.latest

# Beispiel: Upgrade von 0.76.9 auf 0.78.2
# 1. Template-Diff abrufen
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 erfolgreich heruntergeladen" || echo "FEHLER: Diff nicht gefunden, Versionen prüfen"
# 2. Geänderte Dateien überprüfen
grep -n "^diff --git" /tmp/rn-diff.diff
# 3. package.json aktualisieren, native Änderungen anwenden, dann installieren + neu bauen
npm install --prefix "$APP_DIR"
cd "$APP_DIR/ios" && pod install
# 4. Validierung: Beide Plattformen müssen erfolgreich bauen
npx react-native build-android --mode debug --no-packager
xcodebuild -workspace "$APP_DIR/ios/App.xcworkspace" -scheme App -sdk iphonesimulator build

Wann anwenden

Diese Richtlinien sind zu beachten, wenn:

  • Eine React Native App auf eine neuere Version aktualisiert wird
  • Native Konfigurationsänderungen aus Upgrade Helper abgeglichen werden
  • Versionshinweise auf Breaking Changes validiert werden

Kurzreferenz

DateiBeschreibung
upgrading-react-native.mdRouter: wähle den richtigen Upgrade-Pfad
upgrade-helper-core.mdKernworkflow des Upgrade Helpers und Zuverlässigkeitsprüfungen
upgrading-dependencies.mdKompatibilitätsprüfungen und Migrationsplanung für Abhängigkeiten
react.mdRegeln zur Angleichung von React- und React 19-Upgrades
expo-sdk-upgrade.mdExpo SDK-spezifische Upgrade-Schicht (optional)
upgrade-verification.mdCheckliste zur Post-Upgrade-Verifikation, inkl. agenten- und gerätegestützter Prüfungen
monorepo-singlerepo-targeting.mdZielauswahl und Befehlseingrenzung für Monorepo- und Einzelrepo-Apps

Problem → Skill-Zuordnung

ProblemBeginne mit
Upgrade von React Native erforderlichupgrade-helper-core.md
Risikobewertung und Migrationsoptionen für Abhängigkeiten erforderlichupgrading-dependencies.md
Angleichung von React-/React 19-Paketen erforderlichreact.md
Workflow-Routing zuerst erforderlichupgrading-react-native.md
Expo SDK-spezifische Schritte erforderlichexpo-sdk-upgrade.md
Manuelle oder agentengestützte Regressionstests erforderlichupgrade-verification.md
Befehlsbereich für Repo/App erforderlichmonorepo-singlerepo-targeting.md

Individual skills in this repo

This repo contains 15 individual skills — each has its own dedicated page.

agent-device

Automates interactions for Apple-platform apps (iOS, tvOS, macOS) and Android devices. Use when navigating apps, taking snapshots/screenshots, tapping, typing, scrolling, or extracting UI info across mobile, TV, and desktop targets.

assess-react-native-migration

Assesses whether and how an existing mobile product should migrate to React Native. Use when auditing one or more product repositories for migration readiness, including products whose iOS, Android, and other clients live in separate directories or repositories; choosing brownfield, greenfield, or a checkpoint-based path; defining a representative trial; or preparing a baseline and ROI decision before implementation. When product scope or material evidence is unavailable, grills the stakeholder with exactly one question per turn instead of sending a questionnaire.

callstackincubator/github

GitHub patterns using gh CLI for pull requests, stacked PRs, code review, branching strategies, and repository automation. Use when working with GitHub PRs, merging strategies, or repository management tasks.

callstackincubator/validate-skills

Validates skills in this repo against agentskills.io spec and Claude Code best practices. Use via /validate-skills command.

create-react-native-library

Scaffolds React Native libraries with create-react-native-library for standalone libraries or local native modules and views. Use when creating or working on React Native libraries or adding native functionality in an existing app.

dogfood

Systematically explore and test a mobile app on iOS/Android with agent-device to find bugs, UX issues, and other problems. Use when asked to "dogfood", "QA", "exploratory test", "find issues", "bug hunt", or "test this app" on mobile. Produces a structured report with reproducible evidence: screenshots, optional repro videos, and detailed steps for every issue.

github-actions

GitHub Actions workflow patterns for React Native iOS simulator and Android emulator cloud builds with downloadable artifacts. Use when setting up CI build pipelines or downloading GitHub Actions artifacts via gh CLI and GitHub API.

react-native-best-practices

Provides React Native performance optimization guidelines for FPS, TTI, bundle size, memory leaks, re-renders, and animations. Applies to tasks involving Hermes optimization, JS thread blocking, bridge overhead, FlashList, native modules, or debugging jank and frame drops.

react-native-brownfield-migration

Implements an accepted incremental brownfield migration from native iOS or Android to React Native or Expo using @callstack/react-native-brownfield. Use after the brownfield path has been selected, when setting up the integration, packaging XCFramework or AAR artifacts, or adding React Native surfaces to native hosts.

react-native-testing

Write tests using React Native Testing Library (RNTL) v13 and v14 (`@testing-library/react-native`). Use when writing, reviewing, or fixing React Native component tests. Covers: render, screen, queries (getBy/getAllBy/queryBy/findBy), Jest matchers, userEvent, fireEvent, waitFor, and async patterns. Supports v13 (React 18, sync render) and v14 (React 19+, async render). Triggers on: test files for React Native components, RNTL imports, mentions of "testing library", "write tests", "component tests", or "RNTL".

react-native-tv-best-practices

Reviews React Native TV apps for focus/D-pad navigation, 10-foot UI layout, TV playback/DRM integration, low-memory TV performance, and TV accessibility. Use when building, debugging, or reviewing react-native-tvos, Expo TV, Amazon Vega/Kepler, or React Native web TV targets where the issue depends on remote input, TV focus, TV packaging, TV hardware, or TV playback constraints.

react-navigation

Provides React Navigation UI patterns for stacks, tabs, drawers etc. Use when building navigation UIs with React Navigation, configuring headers, bottom sheets or handling safe areas and insets.

validate-skills

Validates skills in this repo against agentskills.io spec and Claude Code best practices. Use via /validate-skills command.

vercel-react-native-skills

React Native and Expo best practices for building performant mobile apps. Use when building React Native components, optimizing list performance, implementing animations, or working with native modules. Triggers on tasks involving React Native, Expo, mobile performance, or native platform APIs.

writing-user-docs

House style for user-facing documentation — voice, scope, structure, and what to leave out. Use this skill whenever writing, editing, or reviewing anything a user reads to learn how to use a tool — help center articles, getting-started guides, tutorials, feature docs, README usage sections, in-app help, release notes, or FAQ entries. Trigger it even when the request is phrased plainly — "document this feature", "write docs for X", "explain this to users", "write a README for this library", "turn these notes into a guide" — and even when no style guidelines are mentioned. Also use it to review existing docs for tone, bloat, or leaked implementation detail. Do not use it for internal engineering docs, architecture write-ups, RFCs, or code comments.

Verwandte Skills