1.8.4 • Published 5 years ago

@iboz/react-native-unsafe-web-socket v1.8.4

Weekly downloads
-
License
ISC
Repository
github
Last release
5 years ago

react-native-unsafe-web-socket

Getting started

$ npm install @iboz/react-native-unsafe-web-socket --save

Mostly automatic installation

$ react-native link @iboz/react-native-unsafe-web-socket

Manual installation

iOS

  1. In XCode, in the project navigator, right click LibrariesAdd Files to [your project's name]
  2. Go to node_modulesreact-native-unsafe-web-socket and add RNUnsafeWebSocket.xcodeproj
  3. In XCode, in the project navigator, select your project. Add libRNUnsafeWebSocket.a to your project's Build PhasesLink Binary With Libraries
  4. Run your project (Cmd+R)<

Android

  1. Open up android/app/src/main/java/[...]/MainActivity.java
  • Add import com.reactlibrary.RNUnsafeWebSocketPackage; to the imports at the top of the file
  • Add new RNUnsafeWebSocketPackage() to the list returned by the getPackages() method
  1. Append the following lines to android/settings.gradle:
    include ':react-native-unsafe-web-socket'
    project(':react-native-unsafe-web-socket').projectDir = new File(rootProject.projectDir, 	'../node_modules/react-native-unsafe-web-socket/android')
  2. Insert the following lines inside the dependencies block in android/app/build.gradle:
      compile project(':react-native-unsafe-web-socket')

Windows

Read it! :D

  1. In Visual Studio add the RNUnsafeWebSocket.sln in node_modules/react-native-unsafe-web-socket/windows/RNUnsafeWebSocket.sln folder to their solution, reference from their app.
  2. Open up your MainPage.cs app
  • Add using Unsafe.Web.Socket.RNUnsafeWebSocket; to the usings at the top of the file
  • Add new RNUnsafeWebSocketPackage() to the List<IReactPackage> returned by the Packages method

Usage

import RNUnsafeWebSocket from '@iboz/react-native-unsafe-web-socket';

// TODO: What to do with the module?
const ws = new RNUnsafeWebSocket(url, protocol);
1.8.4

5 years ago

1.8.3

5 years ago

1.8.2

5 years ago

1.8.1

5 years ago

1.8.0

5 years ago

1.7.9

5 years ago

1.7.8

5 years ago

1.7.7

5 years ago

1.7.6

5 years ago

1.7.5

5 years ago

1.7.4

5 years ago

1.7.3

5 years ago

1.7.2

5 years ago

1.7.1

5 years ago

1.7.0

5 years ago

1.6.9

5 years ago

1.6.8

5 years ago

1.6.7

5 years ago

1.6.6

5 years ago

1.6.5

5 years ago

1.6.4

5 years ago

1.6.3

5 years ago

1.6.2

5 years ago

1.6.1

5 years ago

1.6.0

5 years ago

1.5.9

5 years ago

1.5.8

5 years ago

1.5.7

5 years ago

1.5.6

5 years ago

1.5.5

5 years ago

1.5.4

5 years ago

1.5.3

5 years ago

1.5.2

5 years ago

1.5.1

5 years ago

1.5.0

5 years ago

1.4.0

5 years ago

1.3.0

5 years ago

1.2.0

5 years ago

1.1.9

5 years ago

1.1.8

5 years ago

1.1.7

5 years ago

1.1.6

5 years ago

1.1.5

5 years ago

1.1.4

5 years ago

1.1.3

5 years ago

1.1.2

5 years ago

1.1.1

5 years ago

1.1.0

5 years ago

1.0.0

5 years ago