New
Integrate Next.js and Storybook automaticallyAutomate with Chromatic
Star75,440
Back to integrations
Add your integration
Categories
  • ⭐️ Popular
  • 🧩 Essentials
  • 🛠 Code
  • ⚡️ Data & state
  • ✅ Test
  • 💅 Style
  • 🎨 Design
  • ⚙️ Appearance
  • 🗄 Organize
How to install addons Create an addon
@forbeslindesay/addon-ondevice-actions
Action Logger addon for storybook
npm install @forbeslindesay/addon-ondevice-actions
Last updated over 3 years ago
0
Downloads per week
Readme View on GitHub

Storybook Actions Addon for react-native

Storybook Actions Addon allows you to log events/actions inside stories in Storybook.

Framework Support

This addon is a wrapper for addon @storybook/addon-actions. Refer to its documentation to understand how to use actions

Installation

yarn add -D @storybook/addon-ondevice-actions @storybook/addon-actions

Configuration

Create a file called rn-addons.js in your storybook config.

Add following content to it:

import '@storybook/addon-ondevice-actions/register';

Then import rn-addons.js next to your getStorybookUI call.

import './rn-addons';

See @storybook/addon-actions to learn how to write stories with actions and the crna-kitchen-sink app for more examples.

Join the community
5,858 developers and counting
WhyWhy StorybookComponent-driven UI
Open source software
Storybook

Maintained by
Chromatic
Special thanks to Netlify and CircleCI