packages/expo/docs/prebuild-examples.md
The prebuild command generates native code before a native app can compile.
project.json:
{
"name": "mobile",
//...
"targets": {
//...
"prebuild": {
"executor": "@nx/expo:prebuild",
"options": {}
}
//...
}
}
nx run mobile:prebuild
The platform option allows you to specify the platform to generate native code for (e.g. android, ios, all).
"prebuild": {
"executor": "@nx/expo:prebuild",
"options": {
"platform": "android"
}
}
The clean option allows you to delete the native folders and regenerate them before apply changes.
"prebuild": {
"executor": "@nx/expo:prebuild",
"options": {
"clean": true
}
}
The install option allows you to install NPM Packages and CocoaPods.
"prebuild": {
"executor": "@nx/expo:prebuild",
"options": {
"install": true
}
}