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

7.6.18 • Public • Published

Storybook Backgrounds Addon for React Native

Storybook Backgrounds Addon for React Native can be used to change background colors of your stories right from the device.

Installation

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

Configuration

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

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

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

export default main;

Usage

See the example of using the Backgrounds Addon with Component Story Format. You can also run the react-native app to see it in action.

The web Backgrounds Addon documentation may also be useful, but the examples there have not been tested with Storybook for React Native.

Package Sidebar

Install

npm i @storybook/addon-ondevice-backgrounds

Weekly Downloads

30,627

Version

7.6.18

License

MIT

Unpacked Size

1.64 MB

Total Files

17

Last publish

Collaborators

  • domyen
  • kasperpeulen
  • valentinpalkovic
  • jreinhold
  • kylegach
  • ndelangen
  • shilman
  • tmeasday
  • ghengeveld
  • winkervsbecks
  • yannbf
  • dannyhw
  • gongreg