# socket.red-native

> Socket.red client for react-native

Latest version **0.1.14** (published 2018-02-21) · MIT license · 0 weekly downloads

## Install

```sh
npm install socket.red-native
pnpm add socket.red-native
yarn add socket.red-native
bun add socket.red-native
```

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 0.1.14 |
| Published | 2018-02-21 |
| First published | 2018-01-31 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 3.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 3 |
| Author | Ranjan Shrestha |
| Maintainers | syaau |

## Links

- npm: https://www.npmjs.com/package/socket.red-native
- Repository: https://github.com/bhoos/socket/tree/master/native
- npm.io page: https://npm.io/package/socket.red-native

## Dependencies (1)

- [socket.red-client](https://npm.io/package/socket.red-client.md) ^0.1.14

## Recent versions

- 0.1.14 (latest) — 2018-02-21
- 0.1.11 — 2018-02-16
- 0.1.10 — 2018-02-16
- 0.1.5 — 2018-02-14
- 0.1.2 — 2018-02-02
- 0.1.1 — 2018-02-01
- 0.1.0 — 2018-01-31

## README

# socket.red-native
A socket.red-client implementation for react-native.

Check out the socket.red-client documentation for proper usage. 

It provides a NetInfo and AppState implementation for handling
network detection and app state changes.

You will need to provide ACCESS_NETWORK_STATE permission in android
for this to work. In your app's `AndroidManifest.xml` add the following:

> `<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />`

# Installation
> `$ npm install socket.red-native`

# Usage
```javascript
import createSocket, { connectApi } from 'socket.red-native';

const socket = createSocket(store.dispatch, {});
const api = connectApi(YourApiClass, socket);
```

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