@nx/react-native

Package reference

Here is a list of all the executors, generators and migrations available from this package.

Executors

  • run-android

    Runs Android application.

  • run-ios

    Runs iOS application.

  • bundle

    Builds the JavaScript bundle for offline use.

  • build-android

    Release Build for Android.

  • build-ios

    Build iOS app

  • start

    Starts the Javascript server that communicates with connected devices.

  • sync-deps

    Syncs dependencies to package.json (required for autolinking).

  • ensure-symlink

    Ensure workspace node_modules is symlink under app's node_modules folder.

  • storybook

    Serve React Native Storybook.

  • pod-install

    Run pod install in the ios directory.

  • upgrade

    upgrade executor

Generators

  • initInternal

    Initialize the @nx/react-native plugin.

  • application

    Create a React Native application.

  • library

    Create a React Native library.

  • component

    Create a React Native component.

  • storybook-configuration

    Set up Storybook for a React Native application or library.

  • component-story

    Generate Storybook story for a React Native component.

  • stories

    Create stories for all components declared in an application or library.

  • upgrade-native

    Destructive command to upgrade native iOS and Android code to latest.

  • web-configuration

    Set up web configuration for a React Native app

  • convert-to-inferred

    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

  • 20.3.0-package-updates

    Version: 20.3.0-beta.0

    Packages

    NameVersionAlways Add to package.json
    react-native~0.76.3Update only
    @react-native-community/cli~15.0.1Add if not installed
    @react-native-community/cli-platform-android~15.0.1Add if not installed
    @react-native-community/cli-platform-ios~15.0.1Add if not installed
    @react-native/babel-preset~0.76.3Update only
    @react-native/metro-config~0.76.3Update only
    react-native-web~0.19.13Update only
    react~18.3.1Update only
    react-dom~18.3.1Update only
    react-test-renderer~18.3.1Update only
    @types/react~18.3.12Update only
    @types/react-dom~18.3.1Update only
    @testing-library/react-native~12.9.0Update only
    react-native-svg-transformer~1.5.0Update only
    react-native-svg~15.8.0Update only
    react-native-svg-web~1.0.9Update only
    @babel/runtime~7.26.0Update only
  • 19.6.x

  • update-19-6-0-rename-upgrade-target-name

    Rename upgrade target name to fix casing.

    Version: 19.6.0-beta.1
  • 19.5.x

  • 19.5.0-package-updates

    Version: 19.5.0-beta.0

    Packages

    NameVersionAlways Add to package.json
    react-native-svg15.3.0Update only
  • 19.2.x

  • 19.2.0-package-updates

    Version: 19.2.0-beta.2

    Packages

    NameVersionAlways Add to package.json
    react-native0.74.1Update only
    @react-native-community/cli-platform-android~13.6.6Update only
    @react-native/babel-preset^0.74.83Update only
    @react-native/metro-config^0.74.83Update only
    react-native-web^0.19.11Update only
    @testing-library/react-native~12.5.0Update only
    react-native-svg15.2.0Update only
    @babel/runtime7.24.5Update only
  • 19.0.x

  • 19.0.0-package-updates

    Version: 19.0.0-beta.7

    Packages

    NameVersionAlways Add to package.json
    react-native0.73.6Update only
    @react-native-community/cli-platform-android~12.3.6Update only
    @react-native/babel-preset^0.73.21Update only
    @react-native/metro-config^0.73.5Update only
    react-native-web^0.19.10Update only
    @testing-library/react-native~12.4.5Update only
    react-native-svg-transformer1.3.0Update only
    react-native-svg15.1.0Update only
    @babel/runtime7.24.4Update only