Skip to content

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.

app.json
{
"expo": {
"plugins": [
[
"react-native-mediapipe-posedetection",
{
"assetsPaths": ["./assets/models/"],
"ignoredPattern": "\\.md$"
}
]
]
}
}
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.
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.