No Preview

Sorry, but you either have no stories or none are selected somehow.

If the problem persists, check the browser console, or the terminal you've run Storybook from.

🏁 Getting Started

Installation

Install the package by running:

# If you use npm: npm install @shopify/polaris-viz-native --save # If you prefer Yarn, use the following command instead: yarn add @shopify/polaris-viz-native

Set up PolarisVizProvider

Wrap the top-level component of your app with the PolarisVizProvider

import {PolarisVizProvider} from '@shopify/polaris-viz-native'; export const YourTopLevelComponent = () => { return ( <PolarisVizProvider> <App /> </PolarisVizProvider> ); };

Peer dependencies

Polaris Viz Native has peer dependencies on:

  • react@^16.8.0 || ^17.0.0
  • react-native@>=0.58

You are responsible for providing these packages in your project. By requiring these packages as peerDependencies we can be sure there won't be duplicate packages included due to version mismatches.