Community코딩 & 개발github.com

upgrading-react-native

rn-diff-purge 템플릿 diff를 적용하고, 패키지 의존성을 업데이트하며, 네이티브 iOS/Android 설정을 마이그레이션하고, CocoaPods 및 Gradle 변경 사항을 해결하며, API 변경 사항을 처리하여 React Native 앱을 최신 버전으로 업그레이드합니다. React Native 업그레이드, RN 버전 업데이트, RN 0.x에서 0.y로 전환, 또는 Expo SDK와 함께 마이그레이션할 때 사용하세요.

upgrading-react-native란 무엇인가요?

이 스킬은 React Native 앱을 최신 버전으로 업그레이드하는 전체 워크플로우를 자동화하고 안내합니다. Upgrade Helper를 통해 템플릿 diff를 가져오고, package.json 의존성을 업데이트하며, iOS(CocoaPods)와 Android(Gradle) 네이티브 구성을 마이그레이션하고, 주요 API 변경 사항을 처리하는 단계를 포함합니다. 또한 Expo SDK를 사용하는 경우 SDK 레이어를 적용하고, 업그레이드 후 회귀 테스트를 위한 검증 절차를 제공합니다. 이 스킬은 React Native 앱을 새 버전으로 이동하거나, Upgrade Helper에서 생성된 네이티브 설정 diff를 적용하거나, 릴리스 노트의 주요 변경 사항을 검증할 때 유용합니다. 지원하는 주요 스킬 파일로는 `upgrade-helper-core.md`(핵심 diff 워크플로우), `upgrading-dependencies.md`(의존성 호환성 및 마이그레이션), `react.md`(React 버전 정렬), `expo-sdk-upgrade.md`(Expo SDK 업그레이드), `upgrade-verification.md`(업그레이드 후 검증) 등이 있습니다.

지원 대상~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/callstackincubator/agent-skills/tree/main/skills/upgrading-react-native

Installed? Explore more 코딩 & 개발 skills: steipete/bluebubbles, steipete/eightctl, steipete/blucli · View all 6 →

즐겨 사용하는 AI에게 물어보기

이 에이전트 스킬이 미리 로드된 새 채팅을 엽니다.

문서

Upgrading React Native

개요

완전한 React Native 업그레이드 워크플로우를 다룹니다: Upgrade Helper를 통한 템플릿 diff, 의존성 업데이트, Expo SDK 단계 및 일반적인 함정.

일반적인 업그레이드 순서

  1. 경로: upgrading-react-native.md를 통해 올바른 업그레이드 경로 선택
  2. Diff: upgrade-helper-core.md를 통해 Upgrade Helper를 사용하여 표준 템플릿 diff 가져오기
  3. 의존성: upgrading-dependencies.md를 통해 서드파티 패키지 평가 및 업데이트
  4. React: react.md를 통해 업그레이드된 경우 React 버전 정렬
  5. Expo (해당 시): expo-sdk-upgrade.md를 통해 Expo SDK 레이어 적용
  6. 검증: upgrade-verification.md을 통해 업그레이드 후 점검 실행
# 빠른 시작: 현재 버전 확인 및 diff 가져오기
npm pkg get dependencies.react-native --prefix "$APP_DIR"
npm view react-native dist-tags.latest

# 예시: 0.76.9에서 0.78.2로 업그레이드
# 1. 템플릿 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 다운로드 완료" || echo "오류: diff를 찾을 수 없습니다. 버전을 확인하세요."
# 2. 변경된 파일 검토
grep -n "^diff --git" /tmp/rn-diff.diff
# 3. package.json 업데이트, 네이티브 변경 적용 후 설치 및 재빌드
npm install --prefix "$APP_DIR"
cd "$APP_DIR/ios" && pod install
# 4. 검증: 두 플랫폼 모두 성공적으로 빌드되어야 함
npx react-native build-android --mode debug --no-packager
xcodebuild -workspace "$APP_DIR/ios/App.xcworkspace" -scheme App -sdk iphonesimulator build

적용 시점

다음 상황에서 이 가이드를 참조하세요:

  • React Native 앱을 최신 버전으로 이동할 때
  • Upgrade Helper의 네이티브 설정 변경 사항을 조정할 때
  • 주요 변경 사항에 대한 릴리스 노트를 검증할 때

빠른 참조

파일설명
upgrading-react-native.md라우터: 올바른 업그레이드 경로 선택
upgrade-helper-core.mdUpgrade Helper 핵심 워크플로우 및 신뢰성 게이트
upgrading-dependencies.md의존성 호환성 점검 및 마이그레이션 계획
react.mdReact 및 React 19 업그레이드 정렬 규칙
expo-sdk-upgrade.mdExpo SDK 전용 업그레이드 레이어 (조건부)
upgrade-verification.md업그레이드 후 검증 체크리스트 (에이전트 및 기기 지원 검사 포함)
monorepo-singlerepo-targeting.md모노레포 및 단일 레포 앱 타겟팅 및 명령어 범위 지정

문제 → 스킬 매핑

문제시작할 파일
React Native 업그레이드 필요upgrade-helper-core.md
의존성 위험 평가 및 마이그레이션 옵션 필요upgrading-dependencies.md
React/React 19 패키지 정렬 필요react.md
워크플로우 라우팅 먼저 필요upgrading-react-native.md
Expo SDK 전용 단계 필요expo-sdk-upgrade.md
수동 또는 에이전트 지원 회귀 검증 필요upgrade-verification.md
레포/앱 명령어 범위 지정 필요monorepo-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.

관련 스킬