Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to use this library with expo? #65

Open
mira-service opened this issue Aug 10, 2024 · 2 comments
Open

How to use this library with expo? #65

mira-service opened this issue Aug 10, 2024 · 2 comments
Labels
documentation Improvements or additions to documentation question Further information is requested

Comments

@mira-service
Copy link

mira-service commented Aug 10, 2024

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
Copy link
Member

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
Copy link
Member

Maybe related to #73

@mateogianolio mateogianolio added documentation Improvements or additions to documentation question Further information is requested labels Sep 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants