Security News
Introducing the Socket Python SDK
The initial version of the Socket Python SDK is now on PyPI, enabling developers to more easily interact with the Socket REST API in Python projects.
@onekeyfe/react-native-ble-plx
Advanced tools
This is React Native Bluetooth Low Energy library wrapping Multiplatform Ble Adapter.
It supports:
It does NOT support:
This version (2.x) breaks compatibility with old RN versions. Please check old README (1.x) for the old instructions or migration guide.
React Native | 2.0.0 |
---|---|
0.63.3 | :white_check_mark: |
0.62.2 | :white_check_mark: |
0.61.5 | :white_check_mark: |
0.60.6 | :white_check_mark: |
2.0.3
Interested in React Native project involving Bluetooth Low Energy? We can help you!
Documentation can be found here.
Quick introduction can be found here
Contact us at intent.
Contact us at Gitter if you have any questions, feedback or want to help!
npm install --save react-native-ble-plx
ios
folder and run pod update
NSBluetoothAlwaysUsageDescription
in info.plist
file. (it is a requirement since iOS 13)Capabilities
tab and enable Uses Bluetooth LE Accessories
in
Background Modes
section.restoreStateIdentifier
and restoreStateFunction
to BleManager
constructor.npm install --save react-native-ble-plx
In top level build.gradle
make sure that min SDK version is at least 18:
buildscript {
ext {
...
minSdkVersion = 21
...
In build.gradle
make sure to add jitpack repository to known repositories:
allprojects {
repositories {
...
maven { url 'https://www.jitpack.io' }
}
}
(Optional) In 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_FINE_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"/>
...
Add this to your app/proguard-rules.pro
-dontwarn com.polidea.reactnativeble.**
FAQs
React Native Bluetooth Low Energy library
The npm package @onekeyfe/react-native-ble-plx receives a total of 280 weekly downloads. As such, @onekeyfe/react-native-ble-plx popularity was classified as not popular.
We found that @onekeyfe/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 2 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
The initial version of the Socket Python SDK is now on PyPI, enabling developers to more easily interact with the Socket REST API in Python projects.
Security News
Floating dependency ranges in npm can introduce instability and security risks into your project by allowing unverified or incompatible versions to be installed automatically, leading to unpredictable behavior and potential conflicts.
Security News
A new Rust RFC proposes "Trusted Publishing" for Crates.io, introducing short-lived access tokens via OIDC to improve security and reduce risks associated with long-lived API tokens.