@qudian_mobile/qd-react-native-webview

0.1.4 • Public • Published

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;

Readme

Keywords

Package Sidebar

Install

npm i @qudian_mobile/qd-react-native-webview

Weekly Downloads

6

Version

0.1.4

License

MIT

Unpacked Size

29.8 kB

Total Files

13

Last publish

Collaborators

  • yanghailong
  • liuxianhe
  • xfjtmsm
  • linzehua
  • liujunrong
  • yangjun
  • wushenghua
  • phoobobo
  • mobile_master