Socket
Socket
Sign inDemoInstall

react-native-bluetooth-devices

Package Overview
Dependencies
0
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    react-native-bluetooth-devices

Get and connect to bluetooth devices using React Native


Version published
Weekly downloads
9
decreased by-10%
Maintainers
1
Install size
32.0 kB
Created
Weekly downloads
 

Readme

Source

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

Keywords

FAQs

Last updated on 23 Apr 2021

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc