yamill / react-native-orientation

Listen to device orientation changes in react-native and set preferred orientation on screen to screen basis.
https://www.npmjs.com/package/react-native-orientation
ISC License
1.72k stars 810 forks source link

Get "locked view" specific orientation #346

Open zyasir opened 5 years ago

zyasir commented 5 years ago

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 portrait, but my view is locked in landscape-left. I want to still get landscape-left, is this possible?

I can ofcourse get the non-specific orientation by testing if width > height. But i needed the specific orientation. :(

ochanje210 commented 5 years ago

I need this specification too.