A React Native library for detecting and listening to device orientation changes on iOS and Android.
react-native-orientation-listener is a React Native library that allows developers to detect and respond to device orientation changes in mobile applications. It provides methods to get the current orientation and listen for changes, enabling apps to adapt their layout and behavior when the device is rotated.
React Native developers building mobile applications that need to handle device rotation, such as media players, games, or responsive UIs that adjust to portrait and landscape modes.
It offers a simple, cross-platform solution for orientation detection without requiring complex native code, making it easier to create orientation-aware apps with minimal setup.
A react-native library for obtaining current device orientation
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 straightforward methods like getOrientation and addListener, making it easy to handle orientation without bloat, as shown in the simple usage examples.
Works on both iOS and Android through native module integration, ensuring consistent orientation detection across platforms, per the README setup instructions.
Includes addListener and removeListener methods that align with React component lifecycles, helping prevent memory leaks in responsive UIs.
Concentrates solely on orientation handling without extra features, reducing complexity for developers who need just basic detection.
The repository is archived with a 'No Maintenance Intended' badge, meaning no bug fixes, security updates, or compatibility with newer React Native versions.
Installation involves editing Xcode and Gradle files manually, which is outdated, error-prone, and not compatible with modern autolinking workflows.
Only offers basic orientation detection and event listening, lacking advanced capabilities like orientation locking or detailed sensor data integration.