@nrwl/react-native:start

Packager Server target options.

Options can be configured in project.json when defining the executor, or when invoking it. Read more about how to configure targets and executors here: https://nx.dev/reference/project-configuration#targets.

project.json:

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

Examples

The interactive option allows you to specify whether to use interactive mode:

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

Options

interactive

boolean
Default: true

Run packager server in interactive mode.

port

number
Default: 8081

The port to listen on.

resetCache

boolean
Default: false

Resets metro cache.