1.0.2 • Published 3 years ago
synthetic-tcp v1.0.2
se-tcp
Getting started
$ npm install se-tcp --save
Mostly automatic installation
$ react-native link se-tcp
Manual installation
iOS
- In XCode, in the project navigator, right click
Libraries➜Add Files to [your project's name] - Go to
node_modules➜se-tcpand addSyntheticTcp.xcodeproj - In XCode, in the project navigator, select your project. Add
libSyntheticTcp.ato your project'sBuild Phases➜Link Binary With Libraries - Run your project (
Cmd+R)<
Android
- Open up
android/app/src/main/java/[...]/MainApplication.java
- Add
import com.syntheticencounters.SyntheticTcpPackage;to the imports at the top of the file - Add
new SyntheticTcpPackage()to the list returned by thegetPackages()method
- Append the following lines to
android/settings.gradle:include ':se-tcp' project(':se-tcp').projectDir = new File(rootProject.projectDir, '../node_modules/se-tcp/android') - Insert the following lines inside the dependencies block in
android/app/build.gradle:compile project(':se-tcp')
Usage
import SyntheticTcp from 'se-tcp';
// TODO: What to do with the module?
SyntheticTcp;1.0.2
3 years ago