0.1.7 • Published 4 years ago

react-native-bluetooth-devices v0.1.7

Weekly downloads
-
License
MIT
Repository
github
Last release
4 years ago

react-native-bluetooth-devices

Get and connect to bluetooth devices using React Native

Installation

npm install react-native-bluetooth-devices

Usage

import BluetoothDevices from "react-native-bluetooth-devices";

// ...

BluetoothDevices.startScan()

BluetoothDevices.addEventListener("onConnectedDevices", (res: {
  devices: Array<DeviceType>
}) => {

  console.log(res.devices)

  BluetoothDevices.connectToDevice(res.devices[0].id)

  BluetoothDevices.disconnect()
})

Contributing

See the contributing guide to learn how to contribute to the repository and the development workflow.

License

MIT

0.1.7

4 years ago

0.1.6

4 years ago

0.1.5

4 years ago

0.1.4

4 years ago

0.1.3

4 years ago

0.1.2

4 years ago

0.1.1

4 years ago

0.1.0

4 years ago