@eove/rnrxbluetooth

1.0.0 • Public • Published

RNRxBluetooth

React 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:

Prerequisite

Install React Native following the offical documentation and click on Building Projects with Native Code to select your development OS.

Android

Run the example

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

See the logs

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!

Thanks a lot to RxBluetooth and RxBluetoothKit maintainers and contributors!

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i @eove/rnrxbluetooth

      Weekly Downloads

      1

      Version

      1.0.0

      License

      Apache

      Last publish

      Collaborators

      • fribes
      • michaelborde
      • peio