react-native-music-control icon indicating copy to clipboard operation
react-native-music-control copied to clipboard

Expo config plugin

Open code4break opened this issue 3 years ago • 1 comments

It would be cool, if this lib supports managed Expo projects. So that it will be easy to integrate.

Description

  1. Sample code (provide repo url or sample code) https://docs.expo.dev/guides/config-plugins/#creating-a-plugin
  1. Platform
  • [x] iOS
  • [x] Android
  1. Device
  • [x] Simulator
  • [x] Real device

code4break avatar Jun 20 '22 22:06 code4break

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.

jessemezini avatar Jul 28 '22 20:07 jessemezini