Skip to content

PrivateKit/PrivateKit-SDK

Repository files navigation

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();

What's Next?

  • Improved documentation
  • Standalone libraries for single modalities (ex. - separate Location library, etc)
  • WiFi
  • QR Codes
  • Encrypted and Hashing based set intersections
  • Compute library (With Tensorflow.js support)
  • Encrypted storage and authenticated data transfer
  • Visualization library and Maps integration
  • Background processing and background task management
  • Google/Apple Exposure Notification Library with React Native binding