0.1.4 • Published 5 years ago

@qudian_mobile/qd-react-native-webview v0.1.4

Weekly downloads
1
License
MIT
Repository
github
Last release
5 years ago

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

  1. 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 the getPackages() method
  1. 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')
  2. 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;
0.1.4

5 years ago

0.1.3

5 years ago

0.1.2

6 years ago

0.1.1

6 years ago

0.1.0

6 years ago