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 111 react-native-orientation issues
Sort by recently updated
recently updated
newest added

![orientation](https://user-images.githubusercontent.com/45098179/48772149-c1dc0580-ecc3-11e8-8b78-cde6570d0f16.png)

Linking the dependency causes the app to rotate in 'PORTRAIT' mode. Noticed only in Android. It works fine, on unlinking the dependency! Thanks!

camera react-native link react-native-orientation module.js:550 throw err; ^ Error: Cannot find module 'asap/raw' at Function.Module._resolveFilename (module.js:548:15) at Function.Module._load (module.js:475:25) at Module.require (module.js:597:17) at require (internal/module.js:11:18) at Object. (/Users/mac/Desktop/camera/node_modules/promise/lib/core.js:3:12) at Module._compile...

My Application is `PORTRAIT`, but some pages need a lanscape screen。 I call `Orientation.lockToLandscape();` in `componentWillMount` method and call `lockToPortrait` in `componentWillUnmount`. And it woks fine。 But if I go...

Now checking if an orientation change took place while the app was paused (onHostPause) when recovering (onHostResume). Fixes: https://github.com/yamill/react-native-orientation/issues/294

With this SCREEN_ORIENTATION_FULL_USER we allow any of the 4 possible screen orientations. Added in API level 18. We have a bug when we use current unlock method version. Previous code...

Manual Linking with header `$(SRCROOT)/node_modules/react-native-orientation/iOS/RCTOrientation/` can make issue `'Orientation.h' file not found` so We need to replace to `$(SRCROOT)/../node_modules/react-native-orientation/iOS/RCTOrientation/`

removed commas from example

Add a constant to get the initial specific orientation on iOS The method `getInitialOrientation` can only return `LANDSCAPE` and I need to know if it's a `LANDSCAPE-LEFT` or a `LANDSCAPE-RIGHT`...

## Issue When we are in the `UNKNOWN` orientation (or in an orientation `LANDSCAPE` returned by the `statusBarOrientation`) and call the method `lockToLandscape`, it will set the device orientation in...