react-native-wxwork
v1.1.2
Published
react-native library for wxwork app
Downloads
1,305
Maintainers
Readme
react-native-wxwork
Getting started
$ npm install react-native-wxwork --save
Mostly automatic installation
$ react-native link react-native-wxwork
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-wxworkand addRNWxwork.xcodeproj - In XCode, in the project navigator, select your project. Add
libRNWxwork.ato 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.RNWxworkPackage;to the imports at the top of the file - Add
new RNWxworkPackage()to the list returned by thegetPackages()method
- Append the following lines to
android/settings.gradle:include ':react-native-wxwork' project(':react-native-wxwork').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-wxwork/android') - Insert the following lines inside the dependencies block in
android/app/build.gradle:compile project(':react-native-wxwork')
Windows
- In Visual Studio add the
RNWxwork.slninnode_modules/react-native-wxwork/windows/RNWxwork.slnfolder to their solution, reference from their app. - Open up your
MainPage.csapp
- Add
using Wxwork.RNWxwork;to the usings at the top of the file - Add
new RNWxworkPackage()to theList<IReactPackage>returned by thePackagesmethod
Usage
import RNWxwork from 'react-native-wxwork';
// TODO: What to do with the module?
RNWxwork;