@nrwl/react-native:run-android
Run Android 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/configuration/projectjson#targets.
Options
appId
Specify an applicationId
to launch after build. If not specified, package
from AndroidManifest.xml
will be used.
appIdSuffix
Specify an applicationIdSuffix
to launch after build.
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).
interactive
true
Run packager server in interactive mode.
jetifier
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
MainActivity
Name of the activity to start.
port
8081
The port where the packager server is listening on.
packager
true
Starts the packager server.
resetCache
false
Resets metro cache.
sync
true
Syncs npm dependencies to package.json
(for React Native autolink).
tasks
Run custom Gradle tasks. If this argument is provided, then --variant
option is ignored. Example: yarn react-native run-android --tasks clean,installDebug
.
terminal
Launches the Metro Bundler in a new window using the specified terminal path.
variant
debug
Specify your app's build variant (e.g. debug
, release
).