-
-
Notifications
You must be signed in to change notification settings - Fork 226
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
iOS and Android results decimal #26
Comments
Hey, I would be happy to see a PR for that 👍 |
I ended up using another plugin because I needed the magnetometer. I probably won't have time to work on that sorry. |
@efoy What another plugin did you used? |
@ringcrl I used a slightly modified version of https://github.com/pwmckenna/react-native-motion-manager |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Please note that the values reported by the accelerometers in iOS are measured in increments of the gravitational acceleration, with the value 1.0 representing an acceleration of 9.8 meters per second. See https://developer.apple.com/documentation/coremotion/getting_raw_accelerometer_events for more details. |
Thanks @lihue . This really save my time. I just did this to remedy the challenge.
|
The
X
andY
axis doesn't share the same decimals on Android and iOS. This is fairly simple to handle outside of the plugin but I feel like this should be handled by the plugin.Also the Z axis doesn't return the same values on Android and iOS, but I don't think this is an issue with this plugin.
Android
iOS
Thank you!
The text was updated successfully, but these errors were encountered: