reactnative-orientation-mixin
v1.0.1
Published
Mixin to check orientation on your mobile in state
Downloads
1
Readme
This Mixin define a state NetInfo for your component
Install
$ npm i --save reactnative-orientation-mixin
$ rnpm link
Usage
import React from 'react';
import { View, Text } from 'react-native';
import OrientationMixin from 'reactnative-orientation-mixin';
const MyComponent = React.createClass({
mixins: [ OrientationMixin ],
render() {
return (
<View>
<Text>{ this.state.Orientation }</Text>
</View>
);
}
});