react-native-ble-plx icon indicating copy to clipboard operation
react-native-ble-plx copied to clipboard

Expo app crashes immediately if BleManager is used

Open t3db0t opened this issue 3 years ago • 4 comments

I created a fresh expo app and installed react-native-ble-plx according to these instructions and if I use the line

const manager = new BleManager();

The app crashes immediately upon running without any errors or messages of any kind. If I uncomment that line, it works fine.

Any ideas what I can check or do?

t3db0t avatar Sep 05 '22 02:09 t3db0t

Are you using Expo Go? If so you need to build custom client since this package requires custom native code. Check out @config-plugins/react-native-ble-plx

domenbukovac avatar Sep 05 '22 06:09 domenbukovac

@domenbukovac Thanks for your reply! Yes, I am using that package and a custom dev client. I've successfully used it in an app before but this crashing behavior is new and I'm not sure how to debug it.

t3db0t avatar Sep 05 '22 13:09 t3db0t

Same here

KovD3v avatar Sep 22 '22 17:09 KovD3v

Solved you have to add this Schermata 2022-09-22 alle 19 56 39

KovD3v avatar Sep 22 '22 17:09 KovD3v