Skip to content

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 workspace node_modules is symlink under app’s node_modules folder.

Load stories for react native.

OptionTypeDescriptionDefault
outputFilestring [required]The output file that will be written. It is relative to the project directory."./.storybook/story-loader.ts"
patternstring [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
searchDirarray [required]The directory or directories, relative to the project root, to search for files in.[]

Updates package.json with project dependencies.

OptionTypeDescriptionDefault
allbooleanCopy all dependencies and devDependencies from the workspace root package.json.false
excludearrayAn array of npm packages to exclude.[]
includearrayAn array of additional npm packages to include.[]