Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

(React Native) lock screen in landscape

Tags:

react-native

I'm a newbie in React Native and I cannot find a way to lock the view of a page in landscape mode. Is there a way to do that?

Thank you.

like image 610
navy1978 Avatar asked Sep 14 '15 18:09

navy1978


1 Answers

You want to have the app always be in landscape mode? Android or iOS?

There is a hardware mode that allows you to rotate your simulator. If you want to use lock the app in landscape there is a way using a node module. The below link should help. https://www.npmjs.com/package/react-native-orientation

like image 77
ceditoph Avatar answered Oct 08 '22 04:10

ceditoph