JSPM

react-native-storybook-knobs

0.0.4
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 4
  • Score
    100M100P100Q31157F
  • License MIT

Displays knobs panel inside react-native app

Package Exports

  • react-native-storybook-knobs

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 (react-native-storybook-knobs) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

React Native Addon Knobs

Displays story knobs right inside the app. Currently this is WIP. To make it work we need to merge 3636 3635 3634

Installation

First install the module

npm install react-native-storybook-knobs

Then import and display the addon

import RNKnobs from 'react-native-storybook-knobs'

....


render() {
  const StorybookUI = getStorybookUI()();
  ....
  return (
  <View>
    <RNKnobs/>
    {StorybookUI}
  </View>
  );
}

It is very important to have StorybookUI created before RNKnobs is rendered!