@nx/expo:run
Run Expo 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.
Run Expo 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.
The run
command allows you to compile your app locally.
project.json
:
{
"name": "mobile",
//...
"targets": {
//...
"run-ios": {
"executor": "@nx/expo:run",
"options": {
"platform": "ios"
}
},
"run-android": {
"executor": "@nx/expo:run",
"options": {
"platform": "android"
}
}
//...
}
}
❯
nx run mobile:run-ios nx run mobile:run-android
The variant
option allows you to specify the compile Android app with variants defined in build.gradle
file (e.g. debug, release).
"run-android": {
"executor": "@nx/expo:run",
"options": {
"platform": "android",
"variant": "release"
}
}
ios
ios
, android
Platform to run for (ios, android).
debug
(Android) Specify your app's build variant (e.g. debug, release).
Debug
(iOS) Xcode configuration to use. Debug or Release
Whether to skip starting the Metro bundler. True to start it, false to skip it.
Should use derived data for builds.
false
Delete the native folders and regenerate them before applying changes
Device name or UDID to build the app on. The value is not required if you have a single device connected.
true
Installing npm packages and CocoaPods before building.
8081
Port to start the Metro bundler on
(iOS) Explicitly set the Xcode scheme to use
true
Syncs npm dependencies to package.json (for React Native autolink).
Add sync-deps to dependsOn in project.json for this target instead