1.1.2 • Published 8 years ago

react-native-net-state v1.1.2

Weekly downloads
4
License
ISC
Repository
github
Last release
8 years ago

react-native-net-state

npm.io

Setting

  • Android:
To request network info, you need to add the following line to your app's
AndroidManifest.xml:

<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /> 
Asynchronously determine if the device is connected and details about that connection.

Example

import React, {Component, PropTypes} from 'react';
import NetState from 'react-native-net-state';

class Run extends Component {
  render() {
    return (
      <View style={{flex: 1}}>
        <NetState message="No internet access"/>
      </View>
    );
  }
});

module.exports = Run;

Installation

npm install react-native-net-state --save

Props

  • message you can customize message
  • style you can customize styles box
  • styleText you can customize styles message
1.1.2

8 years ago

1.1.1

8 years ago

1.1.0

8 years ago

1.0.9

8 years ago

1.0.8

8 years ago

1.0.7

8 years ago

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