nx/packages/react-native/docs/start-examples.md

865 B

project.json:

{
  "name": "mobile",
  //...
  "targets": {
    //...
    "start": {
      "executor": "@nrwl/react-native:start",
      "options": {
        "port": 8081
      }
    }
  }
}
nx run mobile:start

Examples

{% tabs %} {% tab label="Starts the server non-interactively" %} The interactive option allows you to specify whether to use interactive mode:

    "start": {
      "executor": "@nrwl/react-native:start",
      "options": {
        "port": 8081,
        "interactive": false
      }
    }

{% /tab %} {% tab label="Starts the server with cache reset" %}

The resetCache option allows you to remove cached files.

    "start": {
      "executor": "@nrwl/react-native:start",
      "options": {
        "port": 8081,
        "resetCache": true
      }
    }

{% /tab %} {% /tabs %}