Socket
Socket
Sign inDemoInstall

@storybook/addon-ondevice-backgrounds

Package Overview
Dependencies
Maintainers
2
Versions
437
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@storybook/addon-ondevice-backgrounds

A react-native storybook addon to show different backgrounds for your preview


Version published
Weekly downloads
33K
decreased by-17.57%
Maintainers
2
Created
Weekly downloads
 

Readme

Source

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 @storybook/addons

Configuration

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

module.exports = {
  addons: ['@storybook/addon-ondevice-backgrounds'],
};

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.

Keywords

FAQs

Package last updated on 14 Jul 2023

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc