'React native reactivex bluetooth library'
npm install @eove/rnrxbluetoothReact Native Reactive Bluetooth Library lets you interact with Bluetooth devices reactively from your React Native application.
This is a simple wrapper around underlying Android and iOS libraries. Current support is:
+ Android, using RxBluetooth: :white_check_mark:
+ iOS, using RxBluetoothKit: :x: (any help appreciated)
Install React Native following the offical documentation and click on Building Projects with Native Code to select your development OS.
From top dir:
+ cd android
+ ./gradlew assembleDebug
+ cd ../RNRxBluetoothExample
+ yarn install (or npm install)
+ react-native link
Then, in one terminal, launch package manager from top directory npm start -- --reset-cache
And in another terminal, react-native run-android
/!\ Be sure to:
+ Run the example with a real device as there isn't any simulator supporting bluetooth emulation.
+ Activate the Bluetooth on your device
When on the main page, shake your device and choose Debug JS Remotely. This will open the Chrome DevTools in a new Chrome tab and you should see the logs.
Thanks a lot to RxBluetooth and RxBluetoothKit maintainers and contributors!