I'm new to this library. I've done all steps written in this site (https://github.com/Polidea/react-native-ble-plx) successfully. I get this error all the time: TypeError: undefined is not an object (evaluating '_BleModule.BleModule.createClient'). Here is my project at github: https://github.com/SergeyMyssak/BluetoothInit
How to solve this problem?
I'm also in the same rut, I detached my project from Expo, and I did all the steps written https://github.com/Polidea/react-native-ble-plx#android, including the react-native link that people keep missing.
In the case there is still doubt on that,
rnpm-install info Platform 'ios' module react-native-ble-plx is already linked
rnpm-install info Platform 'android' module react-native-ble-plx is already linked
is the output from react-native link
EDIT: I got it to work, it was an expo related problem.
I've got the same issue
"react": "16.3.1"
"react-native": "0.55.2"
"react-native-ble-plx": "0.10.0"
I had debugged code and saw that in node_modules/react-native-ble-plx/src/BleModule.js on the line 568 NativeModules.BleClientManager returns undefined. But I did all the things like react-native link
Guys, using react-native link doesn't add new BlePackage() to MainApplication.java. Please, fix this.
@SergeyMyssak try solution above
I tested react-native link both on normal RN project as well as on detached Expo. It works fine. Please reopen if there are any other problems around this issue.
@Esxiel how did you fix this problem? I get the error when I publish to expo