react-native-orientation
react-native-orientation copied to clipboard
Set Android unlockAllOrientations to use SCREEN_ORIENTATION_FULL_USER
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 version don't handle situation if user has lock for portrait orientation in his device preferences.
@stoneman1 Please review this because we have problem with prod
anyone can review it?
What is different "SCREEN_ORIENTATION_USER" and "SCREEN_ORIENTATION_FULL_USER" in #288
@nighttiger1990 SCREEN_ORIENTATION_FULL_USER allows any of the 4 possible rotations, regardless of what the device will normally do (for example some devices won't normally use 180 degree rotation).
This repo dead , use the fork https://github.com/wonday/react-native-orientation-lockera