Runs Android application.
@nx/react-native
Package reference
Here is a list of all the executors, generators and migrations available from this package.
Executors
Runs iOS application.
Builds the JavaScript bundle for offline use.
Release Build for Android.
Build iOS app
Starts the Javascript server that communicates with connected devices.
Syncs dependencies to
package.json
(required for autolinking).Ensure workspace
node_modules
is symlink under app'snode_modules
folder.Serve React Native Storybook.
Run
pod install
in theios
directory.upgrade executor
Generators
initInternal
Initialize the
@nx/react-native
plugin.Create a React Native application.
Create a React Native library.
Create a React Native component.
Set up Storybook for a React Native application or library.
Generate Storybook story for a React Native component.
Create stories for all components declared in an application or library.
Destructive command to upgrade native iOS and Android code to latest.
Set up web configuration for a React Native app
Convert existing React Native project(s) using
@nx/react-native:*
executors to use@nx/react-native/plugin
. Defaults to migrating all projects. Pass '--project' to migrate only one target.
Migrations
20.3.x
19.6.x
19.5.x
19.2.x
19.0.x
20.3.0-package-updates
Packages
Name | Version | Always Add to package.json |
---|---|---|
react-native | ~0.76.3 | Update only |
@react-native-community/cli | ~15.0.1 | Add if not installed |
@react-native-community/cli-platform-android | ~15.0.1 | Add if not installed |
@react-native-community/cli-platform-ios | ~15.0.1 | Add if not installed |
@react-native/babel-preset | ~0.76.3 | Update only |
@react-native/metro-config | ~0.76.3 | Update only |
react-native-web | ~0.19.13 | Update only |
react | ~18.3.1 | Update only |
react-dom | ~18.3.1 | Update only |
react-test-renderer | ~18.3.1 | Update only |
@types/react | ~18.3.12 | Update only |
@types/react-dom | ~18.3.1 | Update only |
@testing-library/react-native | ~12.9.0 | Update only |
react-native-svg-transformer | ~1.5.0 | Update only |
react-native-svg | ~15.8.0 | Update only |
react-native-svg-web | ~1.0.9 | Update only |
@babel/runtime | ~7.26.0 | Update only |
update-19-6-0-rename-upgrade-target-name
Rename upgrade target name to fix casing.
19.5.0-package-updates
Packages
Name | Version | Always Add to package.json |
---|---|---|
react-native-svg | 15.3.0 | Update only |
19.2.0-package-updates
Packages
Name | Version | Always Add to package.json |
---|---|---|
react-native | 0.74.1 | Update only |
@react-native-community/cli-platform-android | ~13.6.6 | Update only |
@react-native/babel-preset | ^0.74.83 | Update only |
@react-native/metro-config | ^0.74.83 | Update only |
react-native-web | ^0.19.11 | Update only |
@testing-library/react-native | ~12.5.0 | Update only |
react-native-svg | 15.2.0 | Update only |
@babel/runtime | 7.24.5 | Update only |
19.0.0-package-updates
Packages
Name | Version | Always Add to package.json |
---|---|---|
react-native | 0.73.6 | Update only |
@react-native-community/cli-platform-android | ~12.3.6 | Update only |
@react-native/babel-preset | ^0.73.21 | Update only |
@react-native/metro-config | ^0.73.5 | Update only |
react-native-web | ^0.19.10 | Update only |
@testing-library/react-native | ~12.4.5 | Update only |
react-native-svg-transformer | 1.3.0 | Update only |
react-native-svg | 15.1.0 | Update only |
@babel/runtime | 7.24.4 | Update only |