@forbeslindesay/addon-ondevice-actions
TypeScript icon, indicating that this package has built-in type declarations

5.1.0-alpha.32 • Public • Published

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.

Readme

Keywords

Package Sidebar

Install

npm i @forbeslindesay/addon-ondevice-actions

Weekly Downloads

5

Version

5.1.0-alpha.32

License

MIT

Unpacked Size

33.8 kB

Total Files

17

Last publish

Collaborators

  • forbeslindesay