1.0.6 • Published 8 years ago

reactnative-netinfo-mixin v1.0.6

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-netinfo-mixin

Usage

import React from 'react';
import { View, Text } from 'react-native';
import NetInfoMixin from 'reactnative-netinfo-mixin';

const MyComponent = React.createClass({
	mixins: [ NetInfoMixin ],

	render() {
		return (
			<View>
				<Text>{ this.state.NetInfo.isConnected ? 'online' : 'offline' }</Text>
			</View>
		);
	}

});
1.0.6

8 years ago

1.0.5

8 years ago

1.0.4

8 years ago

1.0.3

8 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago