How to make app available in PORTRAIT_UP and LANDSCAPE_RIGHT only

Hello,

I want my expo app to be available in the PORTRAIT_UP and LANDSCAPE_RIGHT orientations only.

I thought, that in order to configure that I need to call ScreenOrientation.allow twice. But it works not as I expect and not as it is stated in the documentation.
In the documentation it is said, that it should allow certain screen orientation, however after calling that method it actually sets my app to the certain screen orientation.

Here is the snack:

What I expect - start as PORTRAIT_UP but support LANDSCAPE_RIGHT if I turn the phone.
What actually happens - my app is turned to the LANDSCAPE_RIGHT after start.

How can I configure the app to support and work in two orientations?

Regards,

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