0.1.14 • Published 6 years ago

socket.red-native v0.1.14

Weekly downloads
4
License
MIT
Repository
github
Last release
6 years ago

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

import createSocket, { connectApi } from 'socket.red-native';

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

6 years ago

0.1.11

6 years ago

0.1.10

6 years ago

0.1.5

6 years ago

0.1.2

6 years ago

0.1.1

6 years ago

0.1.0

6 years ago