npm

Ready to take your JavaScript development to the next level? Meet npm Enterprise - the ultimate in enterprise JavaScript.Learn more »

expo-sensors

6.0.0 • Public • Published

expo-sensors

Provides access to a hardware device's accelerometer, gyroscope, magnetometer, and pedometer.

API documentation

Installation

This package is pre-installed in managed Expo projects. You may skip the rest of the installation guide if this applies to you.

For bare React Native projects, you must ensure that you have installed and configured the react-native-unimodules package before continuing.

Add the package to your npm dependencies

npm install expo-sensors

Configure for iOS

Run pod install in the ios directory after installing the npm package.

Note: to access DeviceMotion stats on iOS, the NSMotionUsageDescription key must be present in your Info.plist.

Configure for Android

No additional set up necessary.

Contributing

Contributions are very welcome! Please refer to guidelines described in the contributing guide.

install

npm i expo-sensors

Downloadsweekly downloads

21,299

version

6.0.0

license

MIT

homepage

docs.expo.io

repository

Gitgithub

last publish

collaborators

  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
Report a vulnerability