react-native-esp-idf-provisioning icon indicating copy to clipboard operation
react-native-esp-idf-provisioning copied to clipboard

How to use this library with expo?

Open mira-service opened this issue 6 months ago • 2 comments

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.

mira-service avatar Aug 10 '24 14:08 mira-service