Open jrhager84 opened 2 years ago
Hi @jrhager84, I am facing similar issue for IOS. App is getting crashed on invoking lockToPortrait (Only on physical device, On Simulator its working fine). Any help would be highly appreciated. Thanks.
It may be the "supportedOrientations={['landscape']}" cause?
Not sure why or how, but the logic to lock to portrait doesn't work on iOS. Here is the code. The _app.tsx file just has a blank dependency useEffect that locks it to portrait (I only want specific screens during certain state changes to have landscape mode).
Here is my code:
I can do pretty much any other lock except portrait.