0.0.15 • Published 2 years ago
react-native-ww-plugin-sdk v0.0.15
react-native-ww-plugin-sdk
Getting started
$ npm install react-native-ww-plugin-sdk --save
Mostly automatic installation
$ react-native link react-native-ww-plugin-sdk
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-ww-plugin-sdk
and addRNWwPluginSdk.xcodeproj
- In XCode, in the project navigator, select your project. Add
libRNWwPluginSdk.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.library.dashixiong.RNWwPluginSdkPackage;
to the imports at the top of the file - Add
new RNWwPluginSdkPackage()
to the list returned by thegetPackages()
method
- Append the following lines to
android/settings.gradle
:include ':react-native-ww-plugin-sdk' project(':react-native-ww-plugin-sdk').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-ww-plugin-sdk/android')
- Insert the following lines inside the dependencies block in
android/app/build.gradle
:compile project(':react-native-ww-plugin-sdk')
Usage
import RNWwPluginSdk from 'react-native-ww-plugin-sdk';
// TODO: What to do with the module?
RNWwPluginSdk;