rn-orientation-view
v2.1.2
Published
A react native component to handle orientation change
Downloads
24
Maintainers
Readme
RN Orientation View
A lightweight react native component to handle orientation change.
Install
npm i rn-orientation-view
import OrientationView from 'rn-orientation-view';
Usage
<OrientationView
landscapeStyles={{ flexDirection: 'row' }}
>
...
</OrientationView>
Properties
style
(optional): you can override the default styles.landscapeStyles
(optional): override the default landscapeStyles.portraitStyles
(optional): override the default portraitStyles.isAnimated
(optional): a bool flag indicating if the view should use Animated.View instead.
Authors
- Georgios Apostolidis - devCake
License
This project is licensed under the MIT License