Comments (7)
Thanks @lihue . This really save my time.
I just did this to remedy the challenge.
const az = accelerometer.aZ * (Platform.OS === 'ios' ? 9.8 : 1);
from react-native-sensors.
Hey, I would be happy to see a PR for that 👍
from react-native-sensors.
I ended up using another plugin because I needed the magnetometer. I probably won't have time to work on that sorry.
from react-native-sensors.
@efoy What another plugin did you used?
from react-native-sensors.
@ringcrl I used a slightly modified version of https://github.com/pwmckenna/react-native-motion-manager
from react-native-sensors.
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.
from react-native-sensors.
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.
from react-native-sensors.
Related Issues (20)
- Running with hermes engine causes app to crash HOT 2
- How to interpret Pitch, Yaw , Roll on the orientation feature?
- Error: Native modules for sensors not available. Did react-native link run successfully HOT 3
- mistake, apologies
- Ios error on installation HOT 2
- Unit test Jest and Testing Library: Can't mock sensors
- Outdated instruction/example-code
- Pedometer Sensor HOT 1
- Android and Js code not sync cause all android sensor event not emitted to Js HOT 3
- bug: magnetometer sensor values not updating HOT 1
- Accelerometer not getting proper data in response
- react-native-sensors 7.3.2 IOS can not get gyroscope data HOT 1
- Crash when reloading HOT 4
- Issue with sensors fusion on IOS
- Better align Orientation reference frames across platforms HOT 1
- "Sensor orientation is not available" for some Android devices HOT 3
- Build Failed on IOS RN 0.72 RNSensors v7.3.6 - RCTBridge & RCTBridgeModule not found HOT 4
- No data returned below RN 0.65 HOT 1
- I hope that the sensor is not recognized when the phone is on the lock screen.
- Accelerometer work good on android, NOT working on iOS
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-native-sensors.