orbital-systems / react-native-esp-idf-provisioning

ESP IDF provisioning and custom data library for react-native
MIT License
24 stars 5 forks source link

How to use this library with expo? #65

Open mira-service opened 1 month ago

mira-service commented 1 month ago

Dear Team, Thank you for this grate library!

Please provide an answer: is it possible to use this library with the expo?

If yes, explain how.

Actually, I am using this library with the expo, and it works well.

To run it, I use the npx expo prebuild command to build native code. And add a plugin to app.json:

{
  "expo": {
    "plugins": [
      [
        "react-native-ble-plx",
        {
          "isBackgroundEnabled": true,
          "modes": ["peripheral", "central"],
          "bluetoothAlwaysPermission": "Allow $(PRODUCT_NAME) to connect to bluetooth devices"
        }
      ]
    ]
  }
}

It even works completely with the Expo auto-deploy system (auto Google Play/Apple Store delivery system), but unfortunately, due to the use of native plugins, testing in the Expo Go application does not work.

mateogianolio commented 1 month ago

This library supports RN new architecture and should therefore theoretically work with expo. I'm not familiar with how expo works but a simple yarn add @orbital-systems/react-native-esp-idf-provisioning should suffice. Have you tried just installing the library?

mateogianolio commented 1 week ago

Maybe related to #73