project.json:

1{ 2 "name": "mobile", 3 //... 4 "targets": { 5 //... 6 "start": { 7 "executor": "@nx/react-native:start", 8 "options": { 9 "port": 8081 10 } 11 } 12 } 13} 14
1nx run mobile:start 2

Examples

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

1 "start": { 2 "executor": "@nx/react-native:start", 3 "options": { 4 "port": 8081, 5 "interactive": false 6 } 7 } 8

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.