878 B
878 B
project.json:
{
"name": "mobile",
//...
"targets": {
//...
"run-android": {
"executor": "@nx/react-native:run-android",
"options": {}
}
}
}
nx run mobile:run-android
Examples
Run on a specific device/simulator
To see all the available emulators, run command:
emulator -list-avds
The deviceId option allows you to launch your android app in a specific device/simulator:
"run-android": {
"executor": "@nx/react-native:run-android",
"options": {
"deviceId": "Pixel_5_API_30"
}
}
Run the debug/release app
The mode option allows to specify the build variant, such as debug or release.
"run-android": {
"executor": "@nx/react-native:run-android",
"options": {
"mode": "release"
}
}