client for react-native

Usage no npm install needed!

<script type="module">
  import socketRedNative from '';


A implementation for react-native.

Check out the 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" />


$ npm install


import createSocket, { connectApi } from '';

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