@nx/react-native:stories

Generate stories/specs for all components declared in a React Native project.

Usage

1nx generate stories ... 2

By default, Nx will search for stories in the default collection provisioned in workspace.json.

You can specify the collection explicitly as follows:

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

Show what will be generated without writing to disk:

1nx g stories ... --dry-run 2

Options

project

Required
string

Project for which to generate stories.

ignorePaths

Array<string>
Default: [*.stories.ts,*.stories.tsx,*.stories.js,*.stories.jsx,*.stories.mdx]

Paths to ignore when looking for components.

skipFormat

Internal
boolean
Default: false

Skip formatting files.