简体   繁体   中英

Getting Device Pitch of Android Device in React Native

Is there any library that gives pitch(One of the device tilt angle) information in React-Native?

Found Library but is only for IOS.

Do we have any similar ones for Android?

这个响应本机库以获取本机传感器信息可以满足您的需求

The React Native Sensors library is useful to only get info of Accelerometer and Gyroscope.

However, it doesn't provide any information about calculating the pitch, roll and yaw of the device like how Native Android Development does.

There exists another react-native library React Native Sensor Manager , which provides orientation data and also access to other sensors data such as Step Detector and Proximity Sensor

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM