@nrwl/expo:prebuild

Create native iOS and Android project files for building natively.

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 prebuild command generates native code before a native app can compile.

project.json:

{ "name": "mobile", //... "targets": { //... "prebuild": { "executor": "@nrwl/expo:prebuild", "options": {} } //... } }
nx run mobile:prebuild

Examples

The platform option allows you to specify the platform to generate native code for (e.g. android, ios, all).

"prebuild": { "executor": "@nrwl/expo:prebuild", "options": { "platform": "android" } }

Options

platform

p
string
Default: all
Accepted values: ios, android, all

Platforms to sync

clean

boolean
Default: false

Delete the native folders and regenerate them before applying changes

template

string

Project template to clone from. File path pointing to a local tar file or a github repo

install

boolean
Default: false

Installing npm packages and CocoaPods.