0.0.16 • Published 1 year ago
react-native-webview-daoupay v0.0.16
react-native-webview-daoupay
Getting started
$ npm install react-native-webview-daoupay --save
Mostly automatic installation
$ react-native link react-native-webview-daoupay
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-webview-daoupayand addRNWebviewDaoupay.xcodeproj - In XCode, in the project navigator, select your project. Add
libRNWebviewDaoupay.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.RNWebviewDaoupayPackage;to the imports at the top of the file - Add
new RNWebviewDaoupayPackage()to the list returned by thegetPackages()method
- Append the following lines to
android/settings.gradle:include ':react-native-webview-daoupay' project(':react-native-webview-daoupay').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-webview-daoupay/android') - Insert the following lines inside the dependencies block in
android/app/build.gradle:compile project(':react-native-webview-daoupay')
Windows
- In Visual Studio add the
RNWebviewDaoupay.slninnode_modules/react-native-webview-daoupay/windows/RNWebviewDaoupay.slnfolder to their solution, reference from their app. - Open up your
MainPage.csapp
- Add
using Webview.Daoupay.RNWebviewDaoupay;to the usings at the top of the file - Add
new RNWebviewDaoupayPackage()to theList<IReactPackage>returned by thePackagesmethod
Usage
import RNWebviewDaoupay from 'react-native-webview-daoupay';
// TODO: What to do with the module?
RNWebviewDaoupay;