rn-orientation-view
TypeScript icon, indicating that this package has built-in type declarations

2.1.2 • Public • Published

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

License

This project is licensed under the MIT License

Package Sidebar

Install

npm i rn-orientation-view

Weekly Downloads

4

Version

2.1.2

License

MIT

Unpacked Size

18.6 kB

Total Files

8

Last publish

Collaborators

  • georgiosapo