@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
:
1{
2 "name": "mobile",
3 //...
4 "targets": {
5 //...
6 "run-ios": {
7 "executor": "@nx/expo:run",
8 "options": {
9 "platform": "ios"
10 }
11 },
12 "run-android": {
13 "executor": "@nx/expo:run",
14 "options": {
15 "platform": "android"
16 }
17 }
18 //...
19 }
20}
21
❯
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).
1 "run-android": {
2 "executor": "@nx/expo:run",
3 "options": {
4 "platform": "android",
5 "variant": "release"
6 }
7 }
8
Try out this interactive editor of the configuration object. Values are validated as you type and hovering over labels will give you more information.