I'm trying out React Native right now, and I'm wondering if it is possible to use the sensors (Accelerometer, Gyroscope, etc.) on Android, for I know it is possible on iOS.
This repo seems to have most resources involving React Native, but I cannot find one that specifically refers to using the sensors on Android. https://github.com/jondot/awesome-react-native
To answer your question as to whether it's possible... yes, everything that is native is also possible with react native. You just might have to roll your own solution, especially now because react-native (especially for android) is so young.
I always check https://react.parts/native to see what components the community has created. I recommend this as your first stop as well.
I found this iOS only package there... https://github.com/pwmckenna/react-native-motion-manager
I just wrote a package for Android: https://github.com/kprimice/react-native-sensor-manager
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With