I'm using the react-native-ble-plx library for a React Native project in Expo, but every time get the same error.

I've written my own app, and I've also cloned projects on GitHub that use react-native-ble-plx, but I always get this same exact error: BleManager cannot be instantiated.

I'm running the project with npx expo start or npx expo start --web.

The answers on React Native TypeError: Cannot read property 'createClient' of undefined were ineffective.

Does anyone know how to get over this? Thank you very much!

1

There are 1 best solutions below

0
On

you can't use native modules with Expo Go. you should build a custom dev client with this comman: --- eas build -p android --profile development --local