Socket
Book a DemoInstallSign in
Socket

@forbeslindesay/addon-ondevice-actions

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@forbeslindesay/addon-ondevice-actions

Action Logger addon for storybook

latest
Source
npmnpm
Version
5.1.0-alpha.32
Version published
Maintainers
1
Created
Source

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.

Keywords

storybook

FAQs

Package last updated on 23 Apr 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts