expo-sensors
.Android Device | Android Emulator | iOS Device | iOS Simulator | Web |
---|---|---|---|---|
✅ | ✅ | ✅ | ✅ | ✅ |
expo install expo-sensors
. To use it in a bare React Native app, follow its installation instructions.import * as Sensors from 'expo-sensors'; // OR import { Accelerometer, Barometer, Gyroscope, Magnetometer, MagnetometerUncalibrated, Pedometer, } from 'expo-sensors';