Options

appId

string

Specify an applicationId to launch after build. If not specified, package from AndroidManifest.xml will be used.

appIdSuffix

string

Specify an applicationIdSuffix to launch after build.

deviceId

string

Builds your app and starts it on a specific device/simulator with the given device id (listed by running adb devices on the command line).

interactive

boolean
Default: true

Run packager server in interactive mode.

jetifier

boolean
Default: true

Run Jetifier – the AndroidX transition tool. By default it runs before Gradle to ease working with libraries that don't support AndroidX yet.

mainActivity

string
Default: MainActivity

Name of the activity to start.

port

number
Default: 8081

The port where the packager server is listening on.

packager

boolean
Default: true

Starts the packager server.

resetCache

boolean
Default: false

Resets metro cache.

sync

boolean
Default: true

Syncs npm dependencies to package.json (for React Native autolink).

tasks

string

Run custom Gradle tasks. If this argument is provided, then --variant option is ignored. Example: yarn react-native run-android --tasks clean,installDebug.

terminal

string

Launches the Metro Bundler in a new window using the specified terminal path.

variant

string
Default: debug

Specify your app's build variant (e.g. debug, release).