Expo config plugin
The package includes a config plugin that copies model files (or any other assets) into the native projects when you run npx expo prebuild.
{ "expo": { "plugins": [ [ "react-native-mediapipe-posedetection", { "assetsPaths": ["./assets/models/"], "ignoredPattern": "\\.md$" } ] ] }}Options
Section titled “Options”| Option | Type | Description |
|---|---|---|
assetsPaths |
string[] |
Folders, relative to the project root, whose files are copied. Subfolders are not copied. |
ignoredPattern |
string |
Optional regular expression. Files whose name matches are skipped. |
Where files go
Section titled “Where files go”| Platform | Destination |
|---|---|
| Android | android/app/src/main/assets/ |
| iOS | The ios/ project root, added to the app target’s Copy Bundle Resources |
If a folder can’t be read, the plugin logs a warning and carries on.