react-native-private-kit-sdk

0.1.1 • Public • Published

react-native-private-kit-sdk

Docs

Dedicated website for documentation coming up soon. Fow now please follow the Usage section.

Getting started

$ npm install react-native-private-kit-sdk --save

Mostly automatic installation

$ react-native link react-native-private-kit-sdk

Usage

import { BluetoothService, MagnetometerService, LocationService} from 'react-native-private-kit-sdk';

// For Bluetooth usage
BluetoothService.init();
BluetoothService.requestBluetoothStatus();
BluetoothService.enableBT();
BluetoothService.start();

// For Magnetometer usage
MagnetometerService.start();

// For LocationService usage
// Check and obtain the permissions first -
let locationPermission = LocationService.checkLocationPermission()
if (locationPermission == false) {
  LocationService.requestLocation();
}
LocationService.start();

Readme

Keywords

Package Sidebar

Install

npm i react-native-private-kit-sdk

Weekly Downloads

0

Version

0.1.1

License

MIT

Unpacked Size

422 kB

Total Files

55

Last publish

Collaborators

  • tremblerz