Orientation Lock not functioning when published

Please provide the following:

  1. SDK Version: 37
  2. Platforms(Android/iOS/web/all): Android/iOS

I have set the screen orientation to lock by trying both:

  • in app.json: { “expo”: { “orientation”: “portrait” } }
  • within the code: ScreenOrientation.lockAsync(ScreenOrientation.OrientationLock.PORTRAIT);

This works without issue when connect to my local machine via development mode. However, once the project is published the lock has no effect and the screen rotates as normal.

Have I missed something?


This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.