wonday / react-native-orientation-locker

A react-native module that can listen on orientation changing of device, get current orientation, lock to preferred orientation.
MIT License
761 stars 274 forks source link

BUG IN CLIENT OF UIKIT: Setting UIDevice.orientation is not supported. Please use UIWindowScene.requestGeometryUpdate(_:) #291

Open Fukushiro opened 8 months ago

Fukushiro commented 8 months ago

image when i run on ios keeps returning this error, and in devices crashes

sureshqplay commented 7 months ago

Any update on this issue ?

Jigaricode commented 7 months ago

i am also getting this issue in just IOS

zhenguet commented 6 months ago

updated to 1.7.0 and still face this error

edicon commented 6 months ago

i am also getting this issue in just IOS 17.x

controtie commented 4 months ago

In my case, rn-tooltip was causing the actual crash. I removed it and that fixed things.

Crashing error message:

*** Terminating app due to uncaught exception 'UIApplicationInvalidInterfaceOrientation', reason: 'Supported orientations has no common orientation with the application, and [RCTModalHostViewController shouldAutorotate] is returning YES'