Socket
Socket
Sign inDemoInstall

@storybook/native-addon

Package Overview
Dependencies
Maintainers
1
Versions
135
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@storybook/native-addon

This module contains an addon that can be used to interact with the appetize.io emulator. Currently, it lets you rotate the emulator left or right, take screenshots, and change the device that is being emulated.


Version published
Maintainers
1
Created
Source

@storybook/native-addon

This module contains an addon that can be used to interact with the appetize.io emulator.
Currently, it lets you rotate the emulator left or right, take screenshots, and change the device that is being emulated.

Installation

npm install @storybook/native-addon or yarn add @storybook/native-addon

Usage

Add "@storybook/native-addon/dist/register.js" to the addons section of your main.js file.

Add the following to your preview.js file:

import { DeviceDecorator } from "@storybook/native-addon";

export const decorators = [DeviceDecorator];

An example main.js can be found here.
An example preview.js can be found here.

FAQs

Package last updated on 29 Nov 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

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc