react-native-ble-plx icon indicating copy to clipboard operation
react-native-ble-plx copied to clipboard

Expo Config Plugins Dependency for non-Expo apps

Open rnigro-rwb opened this issue 1 year ago • 3 comments

Prerequisites

  • [X] I checked the documentation and FAQ without finding a solution
  • [X] I checked to make sure that this issue has not already been filed
  • [X] I'm sure that question is related to the library itself and not Bluetooth Low Energy or Classic in general. If that so, please post your question on StackOverflow.
  • [X] I'm running the latest version

Question

With expo support added in v3.1.0, @expo/config-plugins has been added as a required dependency. My project does not use expo and therefore I do not need this, but because it is a dependency of the package, it now gets pulled in.

Is it possible to utilize v3.1.0+ without requiring @expo/config-plugins?

rnigro-rwb avatar May 09 '24 20:05 rnigro-rwb

@rnigro-rwb hi! thanks for the report. we'll get back to you soon. thanks for your patience 🙏

madej10 avatar May 14 '24 13:05 madej10

Hi @rnigro-rwb From what I know @expo/config-plugins is being installed with the package (by js package manager), yet because you are not using any of plugin files the @expo/config-plugins is not being bundled in your final js file, and so should not affect your project. The way of adding plugin for expo is established by expo itself. I hope it answers your question in case of any problems please elaborate on the issue

Hi @rnigro-rwb Do you still need help with the issue?