@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

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.

interactionTests

boolean
Default: true

Set up Storybook interaction tests.

ignorePaths

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

Paths to ignore when looking for components.

js

boolean
Default: false

Generate JavaScript files rather than TypeScript files.

skipFormat

Internal
boolean
Default: false

Skip formatting files.