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

lockToPortrait() not working with deviceOrientationListeners

Open martijngerrits opened this issue 5 years ago • 1 comments

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.

martijngerrits avatar Jun 15 '20 19:06 martijngerrits

I'm having this use-case as well. Very confusing.

lumberman avatar Sep 18 '20 15:09 lumberman