@nx/react-native - Executors
The @nx/react-native plugin provides various executors to help you create and configure react-native projects within your Nx workspace. Below is a complete reference for all available executors and their options.
For an overview of the plugin and setup instructions, see the @nx/react-native introduction.
ensure-symlink
Section titled “ensure-symlink”Ensure workspace node_modules is symlink under app’s node_modules folder.
storybook
Section titled “storybook”Load stories for react native.
Options
Section titled “Options”| Option | Type | Description | Default |
|---|---|---|---|
outputFile | string [required] | The output file that will be written. It is relative to the project directory. | "./.storybook/story-loader.ts" |
pattern | string [required] | The pattern of files to look at. It can be a specific file, or any valid glob. Note: if using the CLI, globs with **/*... must be escaped with quotes | `”**/*.stories.@(js |
searchDir | array [required] | The directory or directories, relative to the project root, to search for files in. | [] |
sync-deps
Section titled “sync-deps”Updates package.json with project dependencies.
Options
Section titled “Options”| Option | Type | Description | Default |
|---|---|---|---|
all | boolean | Copy all dependencies and devDependencies from the workspace root package.json. | false |
exclude | array | An array of npm packages to exclude. | [] |
include | array | An array of additional npm packages to include. | [] |