1.0.4 • Published 6 years ago

react-orientation v1.0.4

Weekly downloads
28
License
-
Repository
github
Last release
6 years ago

react-orientation

A react component to show message to rotate device to a specific orientation

Usage

npm install react-orientation --save

Examples

To import the package

import ReactOrientation from 'react-orientation';

To display a message to "Rotate device to landscape mode"

<ReactOrientation type="landscape" />

This is used when the application is supported in only landscape mode.

To display a message to "Rotate device to portrait mode"

<ReactOrientation type="portrait" /> 

A custom component to display can also be passed

<ReactOrientation>
  <div>Please rotate your device to portrait mode</div>
</ReactOrientation>
In case no type prop is passed to ReactOrientation, type="portrait" will be used by default. It will display message to rotate device to protrait mode.
1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago

0.0.1

6 years ago