Package Exports
- react-native-rotating-view
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (react-native-rotating-view) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
react-native-rotating-view
Creates a view that rotates when the device's orientation changes
Installation
npm install --save react-native-rotating-view
This package depends on react-native-orientation
,
please make sure you follow the instructions for manual linking.
Do not forget to add Orientation.lockToPortrait()
in your initial view to lock orientation and enable the effect.
Usage
var RotatingView = require('react-native-rotating-view');
...
<RotatingView style={{ ... }}>
<YourElement />
</RotatingView>
...
Demo
We use react-native-rotating-view
in Apperture iOS / Android
License
MIT License. © Wassim Gharbi