A React Native wrapper for iOS CMMotionManager providing access to accelerometer, gyroscope, and magnetometer data.
react-native-motion-manager is a React Native library that wraps iOS's CMMotionManager framework to expose accelerometer, gyroscope, and magnetometer data to JavaScript. It solves the problem of accessing native device motion sensors in React Native apps, enabling features like motion-based interactions, orientation detection, and environmental sensing.
React Native developers building iOS applications that require motion sensing, such as games, fitness apps, augmented reality experiences, or navigation tools.
Developers choose this library for its direct, low-level access to iOS motion hardware without complex abstractions, allowing precise control over sensor data and update intervals within a React Native environment.
CMMotionManager wrapper for react-native
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
Provides a low-level bridge to CMMotionManager, allowing precise control over accelerometer, gyroscope, and magnetometer data without unnecessary abstractions, as emphasized in the library's philosophy.
Enables setting custom update intervals (e.g., 0.1 seconds) for each sensor, giving developers fine-grained control over data sampling rates, as shown in the API examples.
Uses DeviceEventEmitter to stream real-time sensor data via events like 'AccelerationData', making it suitable for reactive applications that respond immediately to device movements.
Exposes straightforward methods such as start/stop updates and interval settings, with clear code snippets in the README that simplify basic integration for iOS motion sensing.
The author explicitly states they no longer use or maintain the library, relying on community contributions, which increases the risk of bugs and incompatibility with newer React Native versions.
Only supports iOS via CMMotionManager wrapper, making it useless for Android or cross-platform projects, as admitted by its reliance on native iOS frameworks.
Requires tedious XCode configuration steps like adding files and setting header search paths manually, which the README details and acknowledges can lead to setup troubles.
Offers only basic API examples and an outdated example app, lacking comprehensive guides, troubleshooting help, or updates for modern development practices.