react-native run-android

Builds your app and starts it on a connected Android emulator or device

Options

NameDescription
--root <root>[DEPRECATED - root is discovered automatically] Override the root directory for the android build (which contains the android directory) (default: "")
--variant <variant>Specify your app's build variant (default: "debug")
--appFolder <string>[DEPRECATED – use "project.android.appName" in react-native.config.js] Specify a different application folder name for the android source. If not, we assume is "app"
--appId <appId>Specify an applicationId to launch after build. If not specified, `package` from AndroidManifest.xml will be used. (default: "")
--appIdSuffix <appIdSuffix>Specify an applicationIdSuffix to launch after build. (default: "")
--main-activity <main activity>Name of the activity to start (default: "MainActivity")
--deviceId <deviceId>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)
--no-packagerDo not launch packager while building
--port <free port>Default: 8081
--terminal <terminal path>Launches the Metro Bundler in a new window using the specified terminal path. (default: "Apple_Terminal")
--tasks <task list>Run custom Gradle tasks. By default it's "installDebug"
--no-jetifierDo not run "jetifier" – the AndroidX transition tool. By default it runs before Gradle to ease working with libraries that don't support AndroidX yet. See more at: https://www.npmjs.com/package/jetifier
-h, --helpOutput usage information