🚀 Socket Launch Week Day 5:Introducing Repository Access Permissions and Custom Roles.Learn more
Sign In

rnative-sensor-manager

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rnative-sensor-manager

A react-native module that allows you to use the accelerometer, gyroscope and magnetometer and Android devices

Source
npmnpm
Version
0.1.0
Version published
Weekly downloads
7
-66.67%
Maintainers
1
Weekly downloads
 
Created
Source

rnative-sensor-manager

This package is a wrapper for use sensor native modules

Installation

npm install rnative-sensor-manager

API Usage

Orientation

import SensorManager from "rnative-sensor-manager";
SensorManager.startOrientation(100);
DeviceEventEmitter.addListener("Orientation", (data) => {
  /**
   * data.azimuth
   * data.pitch
   * data.roll
   **/
});
SensorManager.stopOrientation();

License

MIT

Keywords

react-native

FAQs

Package last updated on 15 Dec 2020

Did you know?

Socket

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.

Install

Related posts