behboud / react-native-ble

Central role BLE for react native noble api surface

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

react-native-ble

Central role ble for react native. Technically a shim for the excellent noble Only supports scanning advertisements currently. Ive successfully tested wimoto and eddystone-beacon-scanner on top of of this require.

#install The depenency story on react native is still very incomplete so bear with me. From your existing react native project:

npm i --save react-native-ble

Next see the react native linking guide for visual instructions, but you need to open your project and from node_modules/react-native-estimote drag RNBLE.xcodeproj into your project file browser under Libraries. Then, navigate to your top level project and for your main target, click Build Phases and drag the RNBLE.a Product into the Link Binary With Libraries section. Finally, click the plus button and add CoreBluetooth.framework as well.

#use See the noble api for usage

var noble = ('react-native-ble');

About

Central role BLE for react native noble api surface

License:MIT License


Languages

Language:JavaScript 73.2%Language:Objective-C 26.8%