$ npm install react-native-webviewplus --save
$ react-native link react-native-webviewplus
- 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')
import RNWebviewplus from 'react-native-webviewplus';
// TODO: What to do with the module?
RNWebviewplus;