1.0.1 • Published 8 years ago

reactnative-orientation-mixin v1.0.1

Weekly downloads
1
License
ISC
Repository
-
Last release
8 years ago

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>
		);
	}

});