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

unlockAllOrientations() is not working for iOS

Open Saalim95 opened this issue 3 years ago • 7 comments

Saalim95 avatar Jun 08 '22 08:06 Saalim95

Same for me

ShivaAryal avatar Jun 08 '22 08:06 ShivaAryal

Same for me

lijia321 avatar Jun 13 '22 02:06 lijia321

Hi I'm suddely also experiencing this. It has been working fine before.

I have just upgraded to RN 0.69 and I'm also using iOS16 testing my app, not knowing if this is the reason?

I had upgraded this package to 1.5.0, but now I see that the latest version is said to be 1.4.0. Changed back to 1.4.0, but it makes no difference.

Which versions are you guys using? Both for iOS, React Native and this package.

Thanks!

yberstad avatar Aug 12 '22 08:08 yberstad

I had a similar issue, not sure if it's related, but if you are displaying content inside Modal you need to specify supportedOrientations in order to unlock the rotation on iOS

https://reactnative.dev/docs/modal.html#supportedorientations-ios

<Modal supportedOrientations={['landscape', 'portrait']}>
  {Content}
  <OrientationLocker orientation={UNLOCK} />
</Modal>

Spejbl avatar Sep 16 '22 13:09 Spejbl

We also have this issue. And this is the only one that prevents us from migrating on it from the expo one.

vm-agnislav avatar Sep 27 '22 15:09 vm-agnislav