react-native-net-status
Detecting network status, iOS only
Installation
npm install react-native-net-status
linking library
$ cd ios
$ pod install
Usage
import NetStatus from "react-native-net-status";
// ...
// You can set listener to subscribe state change event
NetStatus.addListener('onStateChange', (data) => setNetworkState(data.state));
Contributing
See the contributing guide to learn how to contribute to the repository and the development workflow.
License
MIT