Skip to content

How to set up Expo dev build hosts

  • Expo app project where you can run expo prebuild, expo run:ios, and expo run:android.
  • iOS and/or Android local build tooling already working for your Expo app.
  1. Install package dependencies.
Terminal window
npm install @ddgutierrezc/legato-react-native @ddgutierrezc/legato-contract
  1. Register the plugin in Expo config.
{
"expo": {
"plugins": ["@ddgutierrezc/legato-react-native"]
}
}
  1. Regenerate native projects.
Terminal window
npx expo prebuild --clean
  1. Build and run iOS host.
Terminal window
npx expo run:ios
  1. Build and run Android host.
Terminal window
npx expo run:android
  • iOS: UIBackgroundModes includes audio once.
  • Android: manifest includes required foreground-service permissions.
  • Android: one expo.modules.legato.LegatoPlaybackService node with exported=false and foregroundServiceType=mediaPlayback.

These checks align with packages/react-native/plugin/src/ios.ts, plugin/src/android.ts, and the readiness checklist evidence contract.

Your app runs as an Expo development build host with plugin-owned native baseline wiring applied.

Native playback validation claims remain blocked until runtime evidence is recorded for both platforms.