react-native-bluetooth-serial icon indicating copy to clipboard operation
react-native-bluetooth-serial copied to clipboard

Example not working [workaround found]

Open jchirschy opened this issue 8 years ago • 3 comments

Following the install procedures, I've got the following error at runtime :

(node:14363) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 2): TypeError: Cannot read property 'message' of undefined

Any idea what's going wrong ?

jchirschy avatar May 29 '17 13:05 jchirschy

Have you ran 'react-native link' after installing the library?

bmoe872 avatar May 29 '17 14:05 bmoe872

yes.

I managed to launch the example.

First of all, it was actually a resolving dependencies issues : "com.atlassian.mobile.video" is not avaible on maven right now. So I had to update react and reactnative just as explain here : https://stackoverflow.com/a/44216865 by editing package.json

"react": "16.0.0-alpha.3",
"react-native": "0.43.1",

and then running npm install --force

And then, I've got another issue : cannot override getUseDeveloperSupport() as protected which was resolved by following this https://github.com/airbnb/lottie-react-native/issues/38 which consisted to edit BluetoothSerialExample/android/app/src/main/java/com/bluetoothserialexample/MainApplication.java and set getUseDeveloperSupportto public.

jchirschy avatar May 29 '17 14:05 jchirschy

The example provided does not work with react-native 0.51, couple of problems need to resolve. Please refer to my original post here: #21

LingboTang avatar Dec 12 '17 19:12 LingboTang