1.0.6 • Published 6 years ago
react-native-webviewplus v1.0.6
react-native-webviewplus
Getting started
$ npm install react-native-webviewplus --save
Mostly automatic installation
$ react-native link react-native-webviewplus
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/react-native-webviewplus/android')
- Insert the following lines inside the dependencies block in
android/app/build.gradle
:implementation project(':react-native-webviewplus')
Usage
import RNWebviewplus from 'react-native-webviewplus';
// TODO: What to do with the module?
RNWebviewplus;