{"repo":"gladiuscode/react-native-orientation-director","free":true,"listed":false,"github":"https://github.com/gladiuscode/react-native-orientation-director","clone":"git clone https://github.com/gladiuscode/react-native-orientation-director.git","description":"A React Native library that allows you to detect device orientation changes, interface orientation changes and lock interface orientation.","language":"TypeScript","stars":112,"topics":["device","handler","interface","listener","orientation","react-native"],"license":"MIT","category":"mobile-apps","readme_excerpt":"--- react-native-orientation-director A React Native library that allows you to listen to orientation changes, lock interface orientation to a selected one and get current orientation. Written in Kotlin, Swift and Typescript. Kindly note that this library only supports the new architecture since v3.0.0, if you are looking for a version that supports the old architecture, please check older versions. This library takes inspiration from and builds upon the following amazing alternatives: 1. react-native-orientation-locker 2. react-native-orientation-handler Features - [x] Get the current orientation of the device - [x] Get the current orientation of the interface - [x] Get the current interface orientation status (locked or unlocked) - [x] Listen to device orientation changes - [x] Listen to interface orientation changes - [x] Listen to interface orientation status changes - [x] Lock the interface orientation to a specific orientation - [x] Unlock the interface orientation - [x] Reset supported interface orientations to settings - [x] Check if autorotation is enabled (Android only) Installation React Native Bare You can install the package via npm or yarn: Don't forget to run pod-install. Expo You can install the package like any other Expo package, using the following command: Setup Expo Simply add the library plugin to your app.json file: This way, Expo will handle the native setup for you during prebuild . Note: only SDK 50 and above are supported, the plugin is configured t","default_branch":null,"files":null,"tree":[],"storefront":"/r/gladiuscode","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/gladiuscode/react-native-orientation-director/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}