
Security News
Cline CLI npm Package Compromised via Suspected Cache Poisoning Attack
A compromised npm publish token was used to push a malicious postinstall script in cline@2.3.0, affecting the popular AI coding agent CLI with 90k weekly downloads.
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:
| React Native | 1.0.3 | 1.1.0 |
|---|---|---|
| 0.60.5 | :white_check_mark:2 | :white_check_mark:2 |
| 0.59.10 | :white_check_mark: | :white_check_mark: |
| 0.58.6 | :white_check_mark: | :white_check_mark: |
| 0.57.8 | :white_check_mark: | :white_check_mark: |
| 0.56.1 | :boom:1 | :boom:1 |
| 0.55.4 | :boom:1 | :boom:1 |
1 fails on Android, although might work after updating gradle
2 may require usage of jetifier on Android and migration to CocoaPods on iOS.
1.1.1
const from enum types in the typescript definition file.Interested in React Native project involving Bluetooth Low Energy? We can help you!
Learn more about Polidea's React Native services.
Learn more about Polidea's BLE services.
Documentation can be found here.
Contact us at Polidea.
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-plxios folder and add empty Swift file if you don't have at least one:
ios/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.NSBluetoothAlwaysUsageDescription in info.plist file.npm install --save react-native-ble-plx
react-native link react-native-ble-plx
Open Xcode project located inside ios folder and add empty Swift file if you don't have at least one:
Minimal supported version of iOS is 8.0
If you want to support background mode:
Capabilities tab and enable Uses Bluetooth LE Accessories in
Background Modes section.restoreStateIdentifier and restoreStateFunction to BleManager constructor.Starting from iOS 13 add NSBluetoothAlwaysUsageDescription in info.plist file.
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"
...
npm install --save-dev jetifierjetify script after npm install. You can do it by adding "postinstall" script to the package.json file:
...
"postinstall": "npx jetify",
...
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 101,020 weekly downloads. As such, react-native-ble-plx popularity was classified as popular.
We found that react-native-ble-plx demonstrated a not healthy version release cadence and project activity because the last version was released 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.

Security News
A compromised npm publish token was used to push a malicious postinstall script in cline@2.3.0, affecting the popular AI coding agent CLI with 90k weekly downloads.

Product
Socket is now scanning AI agent skills across multiple languages and ecosystems, detecting malicious behavior before developers install, starting with skills.sh's 60,000+ skills.

Product
Socket now supports PHP with full Composer and Packagist integration, enabling developers to search packages, generate SBOMs, and protect their PHP dependencies from supply chain threats.