@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/reference/project-configuration#targets.
project.json
:
{
"name": "mobile",
//...
"targets": {
//...
"run-android": {
"executor": "@nrwl/react-native:run-android",
"options": {}
}
}
}
nx run mobile:run-android
Examples
To see all the avaiable emulators, run command:
emulator -list-avds
The deviceId
option allows you to launch your android app in a specific device/simulator:
"run-android": {
"executor": "@nrwl/react-native:run-android",
"options": {
"deviceId": "Pixel_5_API_30"
}
}