reactnative-orientation-mixin

1.0.1 • Public • Published

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

});

/reactnative-orientation-mixin/

    Package Sidebar

    Install

    npm i reactnative-orientation-mixin

    Weekly Downloads

    1

    Version

    1.0.1

    License

    ISC

    Last publish

    Collaborators

    • aviramah
    • clementkerneur