lockToLandscapeLeft is not working for iOS at react-native 0.70.x
Opened this issue · 10 comments
React-native 0.70.X IOS If I try lockToLandscapeLeft, app is stop.
Could you fix this?
Message is like this.
unrecognized selector sent to instance 0x600001b0d860"
At react-native 0.69.6 It's not working too.
I think facebook/react-native@7d42106 is related this issue.
At react-naitive 0.69.6 and I tried debug mode and after [Orientation setOrientation:mask] the app is finished forced. I tried to find the problem, but I can't find this problem. Plz fix this problem.
Out of curiosity, did you replace AppDelegate.m with AppDelegate.mm when you upgraded React Native? If so you should add all customizations from the original AppDelegate in order to make sure it still works.
I switched swift file. And I don't use RCT_NEW_ARCH_ENABLED. And I think other customizations is setting. until 0.69.5, It works very well.
can you confirm if its working in ios 14+
"react-native-orientation-locker": "^1.5.0",
"react": "17.0.1",
"react-native": "0.64.1",
@pawansharmaAccolite I tested IOS 16.
And At react-native below 0.69.6 It works very well.
It does not work just above 0.69.6.
@pawansharmaAccolite I tested IOS 16. And At react-native below 0.69.6 It works very well. It does not work just above 0.69.6.
can you check in real ios device which have ios 14 or 15 its working or not ?
@pawansharmaAccolite Yes, but app is dead.
@jihokim2 you don't received this error with xcode 14.1
[Orientation] BUG IN CLIENT OF UIKIT: Setting UIDevice.orientation is not supported. Please use UIWindowScene.requestGeometryUpdate(_:)