Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jacobrosenthal/react-native-ble
Central role BLE for react native noble api surface
https://github.com/jacobrosenthal/react-native-ble
Last synced: 28 days ago
JSON representation
Central role BLE for react native noble api surface
- Host: GitHub
- URL: https://github.com/jacobrosenthal/react-native-ble
- Owner: jacobrosenthal
- License: mit
- Created: 2015-09-14T11:16:43.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2017-09-26T11:51:14.000Z (about 7 years ago)
- Last Synced: 2024-11-07T06:25:27.401Z (about 1 month ago)
- Language: Java
- Homepage:
- Size: 241 KB
- Stars: 169
- Watchers: 11
- Forks: 45
- Open Issues: 25
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
- awesome-react-native - react-native-ble ★157 - React Native BLE using noble api surface (Components / System)
- awesome-react-native-native-modules - react-native-ble ★151
- awesome-react-native - react-native-ble ★157 - React Native BLE using noble api surface (Components / System)
- awesome-react-native - react-native-ble ★157 - React Native BLE using noble api surface (Components / System)
- awesome-react-native-ui - react-native-ble ★116 - React Native BLE using noble api surface (Components / System)
- awesome-react-native - react-native-ble ★157 - React Native BLE using noble api surface (Components / System)
README
# react-native-ble
Central role ble for react native. Technically a shim for the excellent [noble](https://github.com/sandeepmistry/noble/)
# install
```
npm i --save react-native-ble
```
For ios also see the [react native linking guide](https://facebook.github.io/react-native/docs/linking-libraries-ios.html), but basically
```
npm install rnpm -g
rnpm link
```
For android also see https://facebook.github.io/react-native/docs/native-modules-android.html#register-the-module in the paragraph starting "The package needs to be provided..." for the required edits to getPackages() in MainApplication.java.# use
See the [noble](https://github.com/sandeepmistry/noble/) api for usage
```
var noble = ('react-native-ble');
```For more advanced usage, like in the eddystone_beacon_scanner, include noble directly or utilize a package that does so:
```
var noble = ('noble');
```
And follow the instructions in [rn-nodeify](https://github.com/mvayngrib/rn-nodeify) to deep shim react-native-ble for noble.