Skip to content

Latest commit

 

History

History

ondevice-actions

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

Storybook Actions Addon for react-native

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

Installation

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

Configuration

Then, add following content to .storybook/main.ts:

import { StorybookConfig } from '@storybook/react-native';

const main: StorybookConfig = {
  addons: ['@storybook/addon-ondevice-actions'],
};

export default main;

The actions documentation may also be useful.