@nx/react-native:component-story

Generate storybook story for a react-native component.

Usage

1nx generate component-story ... 2

By default, Nx will search for component-story in the default collection provisioned in workspace.json.

You can specify the collection explicitly as follows:

1nx g @nx/react-native:component-story ... 2
Nx 15 and lower use @nrwl/ instead of @nx/

Show what will be generated without writing to disk:

1nx g component-story ... --dry-run 2

Options

componentPath

Required
string

Relative path to the component file from the library root.

project

Required
string

The project where to add the components.

skipFormat

Internal
boolean
Default: false

Skip formatting files.