@qudian_mobile/qd-react-native-webview
v0.1.4
Published
an more powerful react native webview
Downloads
4
Readme
react-native-webviewplus
Getting started
$ npm install @qudian_mobile/qd-react-native-webview --save
Mostly automatic installation
$ react-native link @qudian_mobile/qd-react-native-webview
Manual installation
Android
- Open up
android/app/src/main/java/[...]/MainApplication.java
- Add
import com.phoobobo.rnwebviewplus.ReactWebViewPlusPackage;
to the imports at the top of the file - Add
new ReactWebViewPlusPackage()
to the list returned by thegetPackages()
method
- Append the following lines to
android/settings.gradle
:include ':react-native-webviewplus' project(':react-native-webviewplus').projectDir = new File(rootProject.projectDir, '../node_modules/@qudian_mobile/qd-react-native-webview/android')
- Insert the following lines inside the dependencies block in
android/app/build.gradle
:implementation project(':react-native-webviewplus')
Usage
import RNWebviewplus from '@qudian_mobile/qd-react-native-webview';
// TODO: What to do with the module?
RNWebviewplus;