1.8.4 • Published 5 years ago
@iboz/react-native-unsafe-web-socket v1.8.4
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
- In XCode, in the project navigator, right click
Libraries
➜Add Files to [your project's name]
- Go to
node_modules
➜react-native-unsafe-web-socket
and addRNUnsafeWebSocket.xcodeproj
- In XCode, in the project navigator, select your project. Add
libRNUnsafeWebSocket.a
to your project'sBuild Phases
➜Link Binary With Libraries
- Run your project (
Cmd+R
)<
Android
- 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 thegetPackages()
method
- 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')
- Insert the following lines inside the dependencies block in
android/app/build.gradle
:compile project(':react-native-unsafe-web-socket')
Windows
- In Visual Studio add the
RNUnsafeWebSocket.sln
innode_modules/react-native-unsafe-web-socket/windows/RNUnsafeWebSocket.sln
folder to their solution, reference from their app. - 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 theList<IReactPackage>
returned by thePackages
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