How to set up Expo dev build hosts
Prerequisites
Section titled “Prerequisites”- Expo app project where you can run
expo prebuild,expo run:ios, andexpo run:android. - iOS and/or Android local build tooling already working for your Expo app.
- Install package dependencies.
npm install @ddgutierrezc/legato-react-native @ddgutierrezc/legato-contract- Register the plugin in Expo config.
{ "expo": { "plugins": ["@ddgutierrezc/legato-react-native"] }}- Regenerate native projects.
npx expo prebuild --clean- Build and run iOS host.
npx expo run:ios- Build and run Android host.
npx expo run:androidVerify plugin baseline wiring
Section titled “Verify plugin baseline wiring”- iOS:
UIBackgroundModesincludesaudioonce. - Android: manifest includes required foreground-service permissions.
- Android: one
expo.modules.legato.LegatoPlaybackServicenode withexported=falseandforegroundServiceType=mediaPlayback.
These checks align with packages/react-native/plugin/src/ios.ts, plugin/src/android.ts, and the readiness checklist evidence contract.
Expected Result
Section titled “Expected Result”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.