0.1.7 • Published 3 years ago

react-native-bluetooth-devices v0.1.7

Weekly downloads
-
License
MIT
Repository
github
Last release
3 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

3 years ago

0.1.6

3 years ago

0.1.5

3 years ago

0.1.4

3 years ago

0.1.3

3 years ago

0.1.2

3 years ago

0.1.1

3 years ago

0.1.0

3 years ago