storybookjs/react-native/writing-react-native-storybook-stories
Claude Code and agent skill by storybookjs/react-native
- community
- ext:[{"type":"plugin","description":"Custom plugin integration"}]
Checking that the SKILL.md file is still in the repository.
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.
Install
npx vskill@latest install storybookjs/react-native/writing-react-native-storybook-storiesSemi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard
SKILL.md
React Native Storybook Stories
Write stories for React Native components using @storybook/react-native v10 and Component Story Format (CSF).
Quick Start
Minimal story file:
File Conventions
- Name:
ComponentName.stories.tsxcolocated with the component - Import
MetaandStoryObjfrom@storybook/react-native - Default export:
metaobject withsatisfies Meta<typeof Component> - Named exports: UpperCamelCase story names, typed as
StoryObj<typeof meta> - Use
argsfor props,argTypesfor control config,parametersfor addon config - Use
renderfor custom render functions,decoratorsfor wrappers
Story Patterns
Multiple stories with shared args
Custom render function
Render with hooks (must be a named function)
Actions (mock callbacks)
Or via argTypes:
Custom story name
Custom title / nesting
Controls & ArgTypes
For the full control type reference, see references/controls.md.
Common patterns:
Auto-detection: TypeScript prop types are automatically mapped to controls (string -> text, boolean -> boolean, union types -> select, number -> number).
Parameters
Addon parameters
RN-specific UI parameters
| Parameter | Type | Description | |||
|---|---|---|---|---|---|
noSafeArea | boolean | Remove top safe area padding. When using this, the component itself must handle safe areas since Storybook will no longer provide safe area padding. Prefer useSafeAreaInsets() over SafeAreaView — apply insets as paddingTop/paddingBottom on the container, and for scrollable content use contentContainerStyle padding instead of wrapping in SafeAreaView. | |||
storybookUIVisibility | 'visible' \ | 'hidden' | Initial UI visibility | ||
hideFullScreenButton | boolean | Hide fullscreen toggle | |||
layout | 'padded' \ | 'centered' \ | 'fullscreen' | Story container layout |
Parameters can be set at story, meta (component), or global (preview.tsx) level.
Decorators
Wrap stories in providers, layouts, or context:
Global decorators go in .rnstorybook/preview.tsx:
Configuration
.rnstorybook/main.ts
Story globs also support the object form for multi-directory setups:
Portable Stories (Testing)
Reuse stories in Jest tests:
For single stories use composeStory:
Setup global annotations for tests in a Jest setup file:
Addons Summary
| Addon | Package | Purpose | |
|---|---|---|---|
| Controls | @storybook/addon-ondevice-controls | Edit props interactively | |
| Actions | @storybook/addon-ondevice-actions | Log component interactions | |
| Backgrounds | @storybook/addon-ondevice-backgrounds | Change story backgrounds | |
| Notes | @storybook/addon-ondevice-notes | Add markdown documentation |
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/writing-react-native-storybook-stories/SKILL.md
Popularity
- Repository stars
- 1,271
- Repository forks
- 178
- 7-day trend score
- 36
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 18 Mar 2026, 8 months ago.
Extension points
pluginCustom plugin integration
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/storybookjs/react-native/writing-react-native-storybook-stories)