sensor hooks
Complementary hooks for Expo Sensors
Other hooks — Usage — Changelog
expo install @use-expo/sensors expo-sensors
-
useAccelerometer
— track changes in acceleration -
useBarometer
— track changes in air pressure -
useDeviceMotion
— track device motion and orientation -
useGyroscope
— track changes in rotation -
useMagnetometer
— track changes in the magnetic field -
useMagnetometerUncalibrated
— track changes in the magnetic field using raw data -
usePedometer
— track user step count -
usePedometerHistory
— get historical step count between two dates
with