Agent skill · Audited from source
writing-react-native-storybook-stories
skill · storybookjs/react-nativeMIT licenceAudited 21 Oct 2026 · source dd1e286760c3
Is it safe? Yes — SAFE, grade B (89/100). We read this skill's source at commit dd1e286760c3 and found no filesystem, network or shell access and no hard-coded secrets. What it does: 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,…
Cite
Cite this page
ModelsAtlas. “writing-react-native-storybook-stories (storybookjs/react-native)”. Retrieved 21 Oct 2026. https://modelsatlas.com/skills/storybookjs/writing-react-native-storybook-stories
Trust audit
Audit 0.4.1 · source read 21 Oct 2026
SAFE means nothing in the source contradicts what the skill says it does. Grade B is shared by 13,985 of 14,816 audited skills.
What the source does
- FilesystemNone observedNo reads or writes in the source
- NetworkNone observedNo outbound calls in the source
- ShellNone observedNo commands run in the source
- DependenciesPinnedNothing floats
- SecretsNone foundNo keys in source
Five audit layers
| Layer | What we check | Result | Findings |
|---|---|---|---|
L0 Provenance | Repo owner, licence, archive status, activity | PASS | 1 |
L1 Static source | Secrets, path traversal, supply chain, hidden code | NA | 0 |
L2 Instructions | Prompt injection, authority framing, hidden directives | PASS | 0 |
L3 Inventory | The files and declarations match the source | PASS | 0 |
L4 Sandbox | Run in isolation and watch behaviour | SKIPPED why | 0 |
Gates applied: no behavioural pass.
Findings (1)
LOWInventory / provenanceinv.symlink · AGENTS.md
AGENTS.md
- Why
- link not followed
- Fix
- —
Audit 0.4.1 · source sha dd1e286760c3 · 21 Oct 2026Report an issue or request a re-scan
Provenance
Who published it, and what the verdict is pinned to
- Publisherstorybookjs GitHub organizationOwner of the repository this skill is read from
- Source folderstorybookjs/react-native/skills/writing-react-native-storybook-storiesThe exact folder we audited
- LicenceMITAs the repository states it
- Commit pinned for this verdictdd1e286760c3A new audit runs when the source changes
- Repository statusNot archivedPushed today
- Sandboxed runNot runSkills are read, not executed; layer L4 is skipped
What it tells the agent
Full source on GitHub ↗Its description: 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,…
---
name: writing-react-native-storybook-stories
description: 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.
---
# 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:
```tsx
import type { Meta, StoryObj } from '@storybook/react-native';
import { MyComponent } from './MyComponent';
const meta = {
component: MyComponent,
} satisfies Meta<typeof MyComponent>;
export default meta;
type Story = StoryObj<typeof meta>;
export const Basic: Story = {
args: {
label: 'Hello',
},
};
```
## File Conventions
- Name: `ComponentName.stories.tsx` colocated with the component
- Import `Meta` and `StoryObj` from `@storybook/react-native`
- Default export: `meta` object with `satisfies Meta<typeof Component>`
- Named exports: UpperCamelCase story names, typed as `StoryObj<typeof meta>`
- Use `args` for props, `argTypes` for control config, `parameters` for addon config
- Use `render` for custom render functions, `decorators` for wrappers
## Story Patterns
### Multiple stories with shared args
```tsx
export const Primary: Story = {
args: { variant: 'primary', title: 'Click me' },
};
export const Secondary: Story = {
args: { ...Primary.args, variant: 'secondary' },
};
```
### Custom render function
```tsx
export const WithScrollView: Story = {
render: (args) => (
<ScrollView>
<MyComponent {...args} />
</ScrollView>
),
};
```
### Render with hooks (must be a named function)
```tsx
export const Interactive: Story = {
render: function InteractiveRender() {
const [count, setCount] = useReducer((s) => s + 1, 0);
return <Counter count={count} onPress={setCount} />;
},
};
```
### Actions (mock callbacks)
```tsx
import { fn } from 'storybook/test';
const meta = {
component: Button,
args: { onPress: fn() },
} satisfies Meta<typeof Button>;
```
Or via argTypes:
```tsx
argTypes: { onPress: { action: 'pressed' } },
```
### Custom story name
```tsx
export const MyStory: Story = {
storyName: 'Custom Display Name',
args: { label: 'Hello' },
};
```
### Custom title / nesting
```tsx
const meta = {
title: 'NestingExample/Message/Bubble',
component: MyComponent,
} satisfies Meta<typeof MyComponent>;
```
## Controls & ArgTypes
For the full control type reference, see [references/controls.md](references/controls.md).
Common patterns:
```tsx
const meta = {
component: MyComponent,
argTypes: {
// Select dropdown
size: {
options: ['small', 'medium', 'large'],
control: { type: 'select' },
},
// Range slider
opacity: {
control: { type: 'range', min: 0, max: 1, step: 0.1 },
},
// Color picker
color: { control: { type: 'color' } },
// Conditional control (shows only when `advanced` arg is true)
padding: { control: 'number', if: { arg: 'advanced' } },
},
} satisfies Meta<typeof MyComponent>;
```
Auto-detection: TypeScript prop types are automatically mapped to controls (`string` -> text, `boolean` -> boolean, union types -> select, `number` -> number).
## Parameters
### Addon parameters
```tsx
parameters: {
// Markdown docs in the Notes addon tab
notes: `# MyComponent\nUsage: \`<MyComponent label="hi" />\``,
// Background options for Backgrounds addon
backgrounds: {
default: 'dark',
values: [
{ name: 'light', value: 'white' },
{ name: 'dark', value: '#333' },
],
},
},
```
### 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 Excerpt, first 6,000 characters of SKILL.md, verbatim from the audited commit. It is text from someone else’s repository, quoted so you can judge it before your agent reads it.
Install
Pinned to the audited commit dd1e286
git clone https://github.com/storybookjs/react-native git -C react-native checkout dd1e286760c3
The author documents no install command, so this uses the repository directly. Our verdict covers commit dd1e286760c3 only.
Works in
The author has not said which agents this skill supports, and we have not tested it in any.
Audit history
Every audit, every source change
- ✓SAFE B 89 / 100
first audit · source
dd1e286760c3
README badge
For maintainers · shows the latest audit
[](https://modelsatlas.com/skills/storybookjs/writing-react-native-storybook-stories/)
The badge shows our verdict and grade for this skill, and links back to this page. It changes when the audit does.
Similar skills
All coding & review skills →storybookjs/react-native
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,…
jpudysz/react-native-unistyles
Guide for using react-native-unistyles v3. Triggers on: "unistyles", "StyleSheet.create", "create stylesheet", "add theme", "breakpoints", "variants", "withUnistyles", "useUnistyles", "ScopedTheme", "UnistylesRuntime",…
callstack/react-native-testing-library
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…
uni-stack/uniwind
Uniwind — Tailwind CSS v4 styling for React Native. Use when adding, building, or debugging components in a React Native project that uses Uniwind classNames. Covers setup, Metro config, global.css, theming, className…
uni-stack/uniwind
Migrate a React Native project from NativeWind to Uniwind. Use when the user wants to replace NativeWind with Uniwind, upgrade from NativeWind, switch to Uniwind, or mentions NativeWind-to-Uniwind migration. Handles…
facebook/react
Use when you want to validate changes before committing, or when you need to check all React contribution requirements.
Add this badge to your README
[](https://modelsatlas.com/skills/storybookjs/writing-react-native-storybook-stories/)
<a href="https://modelsatlas.com/skills/storybookjs/writing-react-native-storybook-stories/"><img src="https://modelsatlas.com/skills/storybookjs/writing-react-native-storybook-stories/badge.svg" alt="ModelsAtlas: SAFE B"></a>
Questions about writing-react-native-storybook-stories
What does the writing-react-native-storybook-stories skill do?
Is writing-react-native-storybook-stories safe to install?
What can writing-react-native-storybook-stories access on my machine?
How current is this page?
Sources
- github.com/storybookjs/react-native/tree/next/skills/writing-rea — the audited source at commit dd1e286760c3 and every finding aboveObserved · 21 Oct 2026
Spotted something wrong? Report a correction · Methodology
Keep going in your AI
Opens with this page as the source. We add nothing else to the prompt.
- What does the writing-react-native-storybook-stories skill do?
- Is writing-react-native-storybook-stories safe to install?
- What can writing-react-native-storybook-stories access on my machine?