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

Set Android unlockAllOrientations to use SCREEN_ORIENTATION_FULL_USER

Open aleksey89 opened this issue 6 years ago • 5 comments

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.

aleksey89 avatar Jun 20 '18 08:06 aleksey89

@stoneman1 Please review this because we have problem with prod

aleksey89 avatar Jun 20 '18 08:06 aleksey89

anyone can review it?

ValentinBlokhin avatar Jun 21 '18 12:06 ValentinBlokhin

What is different "SCREEN_ORIENTATION_USER" and "SCREEN_ORIENTATION_FULL_USER" in #288

nighttiger1990 avatar Oct 13 '18 13:10 nighttiger1990

@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).

aleksey89 avatar Oct 15 '18 18:10 aleksey89

This repo dead , use the fork https://github.com/wonday/react-native-orientation-lockera

retyui avatar Oct 20 '18 06:10 retyui