Skip to content

devcake-ab/rn-orientation-view

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

A react native component to handle orientation change

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published