react-native-music-control
react-native-music-control copied to clipboard
Expo config plugin
It would be cool, if this lib supports managed Expo projects. So that it will be easy to integrate.
Description
- Sample code (provide repo url or sample code) https://docs.expo.dev/guides/config-plugins/#creating-a-plugin
- Platform
- [x] iOS
- [x] Android
- Device
- [x] Simulator
- [x] Real device
Hi @FireFighter80, I think you can use without the need of a plugin.
In the app.json
{
"expo": {
"name": "my-app",
"ios": {
"infoPlist": {
"UIBackgroundModes": ["audio"]
},
},
"android": {
"permissions": ["FOREGROUND_SERVICE"]
},
}
}
https://docs.expo.dev/guides/config-plugins/#using-a-plugin-in-your-app
Plugins are mostly meant to be used with expo prebuild or eas build commands.
I tested on android with prebuild and eas build.