Run the following command to add the expo-brownfield-target plugin to your project:
npm install expo-brownfield-targetAdd the config plugin to the "plugins" section in your app.json or app.config.js:
{
"expo": {
"name": "my-awesome-expo-project",
"slug": "my-awesome-expo-project",
...
"plugins": [
... // Other plugins
"expo-brownfield-target"
]
}
}Then prebuild your app with:
npx expo prebuild --clean| Property | Description | Default value |
|---|---|---|
bundleIdentifier |
Bundle identifier for the brownfield native target. | ios.bundleIdentifier with last component replaced with the target name or com.example.<target-name> if ios.bundleIdentifier is undefined. |
targetName |
Name of the brownfield native target. Also used as the name of the directory containing brownfield files. The value is sanitized to only contain alphanumeric characters and start with a letter. | config.scheme or config.ios.scheme appended with brownfield, if either value is defined and a single string. If not defaults to to <slug>brownfield, where <slug> is sanitized slug from the Expo project config |