react-native-orientation-locker
react-native-orientation-locker copied to clipboard
lockToPortrait() not working with deviceOrientationListeners
When I call addDeviceOrientationListener(), the function lockToPortrait() does not work on iOS.
It works when I only use addOrientationListener(), but with that listener I'm not able to listen for events when the native video player is fullscreen, so it is useless in my use case.
Expected behaviour should be that when I remove the deviceOrientationListener callback with removeDeviceOrientationListener(), the lockToPortrait() method should work.
I'm having this use-case as well. Very confusing.