react-native-orientation icon indicating copy to clipboard operation
react-native-orientation copied to clipboard

Listen to device orientation changes in react-native and set preferred orientation on screen to screen basis.

Results 113 react-native-orientation issues
Sort by recently updated
recently updated
newest added

I needed to use the GetSpecificOrientation method on Android and I noticed that it was removed back in March 2016. I just added it back in with some minor changes...

![image](https://user-images.githubusercontent.com/16634729/61345262-f8841300-a886-11e9-853c-c6ed230348bc.png) The path should be '$(SRCROOT)/../node_modules/react-native-orientation/iOS/RCTOrientation'. I have suffered a lot because of this.

I have locked the orientation via XCode in landscape-left and landscape-right, but using `getSpecificOrientation` is giving the orientation as if it was not locked. Like when I am physically in...

I've managed to get functions like lockToLandscape() working by using 'const Orientation = require('react-native').NativeModules.Orientation;' rather than 'import Orientation from 'react-native-orientation;', as using the latter results in Orientation being undefined. But...

The initial orientation is not specific. Is it possible to get initial --specific-- orientation?

This framework uses private API. ``` [[UIDevice currentDevice] setValue:[NSNumber numberWithInteger: UIInterfaceOrientationLandscapeRight] forKey:@"orientation"]; ``` This is the equivalent of calling `setOrientation:` which is private. On top of the bad user experience,...

Please update ../android/build.gradle file and replace code with this for higher Android versions ``` buildscript { repositories { google() jcenter() } dependencies { classpath 'com.android.tools.build:gradle:3.1.4' } } apply plugin: 'com.android.library'...

I have no idea why this needs all those visual elements, but the app won't compile unless I manually edit the build.gradle for react-native-orientation to use a compileSdk of 26.

Good morning folks. Since I started using this project, I ended up having a problem doing an android pro build because the compileSDK of this project is outdated. If it...