This repo demonstrates how to use react-native-ble-plx in a managed expo project.
FAQ
- Do i need to eject? No
- Can i use the expo go app? Also no
- But how does it work? Running native code (non expo stuff, react-native-ble-plx in this case) requires a custom build of expo's go app, called a dev-client
To build this app you need access to expos eas system. Dont worry, it's free*. You can either build in their cloud or on your own machine (building for iOS requieres a macOS Device!).
Remote Build (eas server)
- eas build --profile development --platform ios
OR
- eas build --profile development --platform android
Local build:
- eas build --profile development --platform ios --local
OR
- eas build --profile development --platform android --local
And then follow the eas instructions.
To build a standalone app you need to swith the profile to "preview":
- eas build --profile preview --platform ios
OR
- eas build --profile preview --platform android