
Product
Introducing the Alert Details Page: A Better Way to Explore Alerts
Socket's new Alert Details page is designed to surface more context, with a clearer layout, reachability dependency chains, and structured review.
react-native-ble-plx
Advanced tools
This is React Native Bluetooth Low Energy library using RxBluetoothKit and RxAndroidBle under the hood.
It supports:
What this library does NOT support:
1.0.0
Breaking changes
Other:
requestConnectionPriority function which increases or decreases connection interval setting on Android Lollipop devices or above.connectionPriority option to connection options which calls above function just after the connection is established.scanMode and callbackType properties to scan options for Android.enable and disable functions to enable/disable Bluetooth on Android.transactionId argument to discoverAllServicesAndCharacteristicsForDevice.errorCodesToMessagesMapping property to BleManagerOptions to be able to override custom BleError messages.cancelDeviceConnection documentation.writeWithoutResponse implementation on iOS to use canSendWriteWithoutResponse if available starting from iOS 11.Interested in React Native project involving Bluetooth Low Energy? We can help you!
Documentation can be found here.
Contact us at Gitter if you have any questions, feedback or want to help!
npm install --save react-native-ble-plxreact-native link react-native-ble-plxCapabilities tab and enable Uses Bluetooth LE Accessories in
Background Modes section.restoreStateIdentifier and restoreStateFunction to BleManager constructor.npm install --save react-native-ble-plxreact-native link react-native-ble-plxios/Podfile to contain:
pod 'react-native-ble-plx', :path => '../node_modules/react-native-ble-plx'
pod 'react-native-ble-plx-swift', :path => '../node_modules/react-native-ble-plx'
ios folder and run pod updateCapabilities tab and enable Uses Bluetooth LE Accessories in
Background Modes section.restoreStateIdentifier and restoreStateFunction to BleManager constructor.npm install --save react-native-ble-plxreact-native link react-native-ble-plxbuild.gradle of app module make sure that min SDK version is at least 18:android {
...
defaultConfig {
minSdkVersion 18
...
AndroidManifest.xml, add Bluetooth permissions and update <uses-sdk/>:<manifest xmlns:android="http://schemas.android.com/apk/res/android"
...
<uses-permission android:name="android.permission.BLUETOOTH"/>
<uses-permission android:name="android.permission.BLUETOOTH_ADMIN"/>
<uses-permission-sdk-23 android:name="android.permission.ACCESS_COARSE_LOCATION"/>
<!-- Add this line if your application always requires BLE. More info can be found on:
https://developer.android.com/guide/topics/connectivity/bluetooth-le.html#permissions
-->
<uses-feature android:name="android.hardware.bluetooth_le" android:required="true"/>
<uses-sdk
android:minSdkVersion="18"
...
Add this to your app/proguard-rules.pro
-dontwarn com.polidea.reactnativeble.**
FAQs
React Native Bluetooth Low Energy library
The npm package react-native-ble-plx receives a total of 66,286 weekly downloads. As such, react-native-ble-plx popularity was classified as popular.
We found that react-native-ble-plx demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 4 open source maintainers collaborating on the project.
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.

Product
Socket's new Alert Details page is designed to surface more context, with a clearer layout, reachability dependency chains, and structured review.

Product
Campaign-level threat intelligence in Socket now shows when active supply chain attacks affect your repositories and packages.

Research
Malicious PyPI package sympy-dev targets SymPy users, a Python symbolic math library with 85 million monthly downloads.