Skip to content

Latest commit

 

History

History
25 lines (16 loc) · 451 Bytes

File metadata and controls

25 lines (16 loc) · 451 Bytes

react-native-change-orientation

React native package that helps change device orientation programatically

Installation

yarn add react-native-change-orientation

Usage

import ChangeOrientation from 'react-native-change-orientation';

ChangeOrientation.setPortrait();
// or
ChangeOrientation.setLandscape();

Currently works only on iOS (react-native-navigation supports orientation change on Android)

License

MIT