JSPM

@storybook/addon-ondevice-knobs

5.3.0-alpha.35
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 20131
  • Score
    100M100P100Q158528F
  • License MIT

Display storybook story knobs on your deviced.

Package Exports

  • @storybook/addon-ondevice-knobs
  • @storybook/addon-ondevice-knobs/register

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@storybook/addon-ondevice-knobs) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Storybook Knobs Addon for react-native

Storybook Knobs Addon allows you to edit react props using the Storybook UI using variables inside stories in Storybook.

Framework Support

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

Installation

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

Configuration

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

Add following content to it:

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

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

import './rn-addons';

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