A lightweight react native component to handle orientation change.
npm i rn-orientation-view
import OrientationView from 'rn-orientation-view';
<OrientationView
landscapeStyles={{ flexDirection: 'row' }}
>
...
</OrientationView>
-
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.
- Georgios Apostolidis - devCake
This project is licensed under the MIT License