Respond to natural landscape mode for only one page

Is it possible for the application to respond to the use of the application in portrait mode, but you have one page working in landscape mode? I know that in xcode you need to first select a portrait or landscape, so I'm a little confused about how to make all the pages in the portfolio of the application except one.

+5
source share
1 answer

There is a very well-built package: react-native-orientation

The only drawback is that you need to specify the orientation in each scene of your application with:

Orientation.lockToPortrait();

or

Orientation.lockToLandscape();

+4
source

Source: https://habr.com/ru/post/1258742/


All Articles