react-native-orientation-locker
react-native-orientation-locker copied to clipboard
proplem dont lock orientation
i have one problem only in device, when i locked landscap the application change to landscap but comeback to portrait and dont lock. if i try in emulator is ok. i used android device. any idea?
Same here
I found an solution to solve this problem.
Try to modify function lockToPortrait() in java/org/wonday/orientation/OrientationModule.java
@ReactMethod
public void lockToPortrait() {
//...
- activity.setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_REVERSE_PORTRAIT);
+ activity.setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_UNSPECIFIED);
//...
}