# react-native-net-status

> detecting network status

Latest version **1.0.1** (published 2020-09-14) · MIT license · 0 weekly downloads

## Install

```sh
npm install react-native-net-status
pnpm add react-native-net-status
yarn add react-native-net-status
bun add react-native-net-status
```

## Health

**Score 30/100 (F)** — status: abandoned.

Positive: has types; esm support; no vulnerabilities; high quality score.

Warnings: low downloads.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2020-09-14 |
| First published | 2020-09-11 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 44.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 5 |
| Author | lgogsadze |
| Maintainers | l.gogs |
| Keywords | react-native, ios, android |

## Links

- npm: https://www.npmjs.com/package/react-native-net-status
- Repository: https://github.com/Lg0gs/react-native-net-status
- Homepage: https://github.com/Lg0gs/react-native-net-status#readme
- Issues: https://github.com/Lg0gs/react-native-net-status/issues
- npm.io page: https://npm.io/package/react-native-net-status

## Alternatives

- [@sindresorhus/slugify](https://npm.io/package/@sindresorhus/slugify.md) — 3.7M weekly downloads
- [solid-js](https://npm.io/package/solid-js.md) — 2.7M weekly downloads
- [expo-glass-effect](https://npm.io/package/expo-glass-effect.md) — 2.5M weekly downloads
- [nanoassert](https://npm.io/package/nanoassert.md) — 780.8K weekly downloads
- [@ffmpeg/ffmpeg](https://npm.io/package/@ffmpeg/ffmpeg.md) — 529.5K weekly downloads

## Recent versions

- 1.0.1 (latest) — 2020-09-14
- 1.0.0 — 2020-09-11
- 0.1.0 — 2020-09-11

## README

# react-native-net-status

Detecting network status, iOS only

## Installation

```sh
npm install react-native-net-status
```

## linking library
```sh
$ cd ios
$ pod install
```

## Usage

```js
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](CONTRIBUTING.md) to learn how to contribute to the repository and the development workflow.

## License

MIT

---
_Source: https://npm.io/package/react-native-net-status · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
