본문으로 건너뛰기
cccskills
무료GitHub에 공개

upgrading-react-native-storybook

Incrementally upgrade React Native Storybook across the supported migration paths. Use when upgrading `@storybook/react-native` projects from 5.3.x to 6.5.x, 6.5.x to 7.6.x, 7.6.x to 8.3.x, 8.x to 9.x, or 9.x to 10.x. Detect the currently installed Storybook version, choose only the next migration step, update dependencies and config, regenerate `storybook.requires`, convert remaining `storiesOf` stories to CSF during the `6.5.x -> 7.6.x` upgrade, and stop after a single version hop instead of jumping multiple major versions at once.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

설치 방법 보기

포함된 파일(7)

  • SKILL.md3.3 KB
  • references/from-5-3-to-6-5.md4.4 KB
  • references/from-6-5-to-7-6.md6.7 KB
  • references/from-7-6-to-8-3.md2.7 KB
  • references/from-8-to-9.md2.1 KB
  • references/from-9-to-10.md4.6 KB
  • references/storiesof-to-csf-examples.md6.1 KB

SKILL.md(원문)

설치하기 전에 에이전트에게 전달되는 지시 내용을 확인할 수 있습니다.

React Native Storybook Upgrades

Upgrade one supported version step at a time. Do not jump from an older major directly to the latest release in a single pass.

Rules

  • Detect the project's package manager first and use it consistently.
  • Detect the currently installed Storybook version from package.json, lockfiles, and config files before editing anything.
  • Apply exactly one migration step per run. If a project is multiple versions behind, complete the next hop, verify it, and then report the next required hop.
  • During the 6.5.x -> 7.6.x step, convert any remaining storiesOf stories to CSF instead of preserving compatibility mode.
  • Preserve the project's existing app structure. Only make the migration changes required for the current step.

Version Detection

Look at these signals together:

  • package.json versions for @storybook/react-native, storybook, @storybook/react, and @storybook/addon-ondevice-*
  • Whether the config folder is .storybook/ or .rnstorybook/
  • Metro config imports such as metro/withStorybook, metro/withStorybookConfig, or default-vs-named withStorybook
  • Story format usage: CSF vs storiesOf
  • Generated file names such as storybook.requires.js vs storybook.requires.ts

If the version is ambiguous, stop and clarify the current installed version instead of guessing.

Migration Selection

Use exactly one reference file:

  1. 9.x -> 10.x: references/from-9-to-10.md
  2. 8.x -> 9.x: references/from-8-to-9.md
  3. 7.6.x -> 8.3.x: references/from-7-6-to-8-3.md
  4. 6.5.x -> 7.6.x: references/from-6-5-to-7-6.md
  5. 5.3.x -> 6.5.x: references/from-5-3-to-6-5.md

Workflow

  1. Confirm the current Storybook version and whether the repo uses Expo, Expo Router, React Native CLI, or Re.Pack.
  2. Pick the next migration step only. Never bundle multiple major upgrades together.
  3. Apply the dependency, config, and source-file changes from the matching reference.
  4. Regenerate storybook.requires or restart Metro when that step requires it.
  5. Run the smallest useful verification available for the repo, such as the generation script, tests, lint, or the local Storybook app launch path.
  6. If the repo still is not on the user's target version, stop with a clear note describing the next required migration step.

Output Expectations

When you finish a migration step, report:

  • The version hop that was completed
  • The files and config surfaces that changed
  • The verification you ran, or what you could not run
  • The next required migration hop, if the project is still behind

리뷰

아직 리뷰가 없습니다. 사용해 본 소감을 남겨 주세요.

댓글

로그인 없이 쓸 수 있습니다. 사용 후기, 질문, 작동하지 않은 환경 등을 편하게 남겨 주세요.

아직 댓글이 없습니다. 첫 댓글을 남겨 보세요.

보내면 바로 공개됩니다. 이메일 주소나 전화번호 같은 개인 정보는 쓰지 마세요. URL은 2개까지입니다.

0 / 1,000자

이 양식은 reCAPTCHA로 보호되며 Google 개인정보처리방침 및 서비스 약관이 적용됩니다.

같은 저장소의 스킬

Set up Storybook for React Native in Expo, React Native CLI, or Re.Pack projects. Use when adding Storybook to a project, configuring metro.config.js with withStorybook, creating .rnstorybook configuration files, setting up Storybook routes in Expo Router, configuring getStorybookUI, or adding the StorybookPlugin to a Re.Pack rspack/webpack config. Covers Expo, Expo Router, plain React Native CLI, and Re.Pack setups.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

storybookjs/react-native1.3천2026년 10월 18일 업데이트

Create and edit React Native Storybook stories using Component Story Format (CSF). Use when writing .stories.tsx files, adding stories to React Native components, configuring Storybook addons (controls, actions, backgrounds, notes), setting up argTypes, decorators, parameters, or working with portable stories for testing. Applies to any task involving @storybook/react-native story authoring.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

storybookjs/react-native1.3천2026년 10월 18일 업데이트

storybookjs의 스킬 모두 보기

이 스킬의 문제 신고