@qdrn/qdrn-image-preview

0.5.1 • Public • Published

react-native-webviewplus

Getting started

$ npm install @qdrn/qdrn-image-preview --save

Mostly automatic installation

$ react-native link @qdrn/qdrn-image-preview

Manual installation

Android

  1. Open up android/app/src/main/java/[...]/MainApplication.java
  • Add import com.qudian.ipreview.rn.ImagePreviewPackage; to the imports at the top of the file
  • Add new ImagePreviewPackage() to the list returned by the getPackages() method
  1. Append the following lines to android/settings.gradle:
    include ':qdrn-image-preview'
    project(':qdrn-image-preview').projectDir = new File(rootProject.projectDir, 	'../node_modules/@qudian_mobile/qdrn-image-preview/android')
    
  2. Insert the following lines inside the dependencies block in android/app/build.gradle:
      implementation project(':qdrn-image-preview')
    

Usage

import RNWebviewplus from '@qudian_mobile/qdrn-image-preview';

// TODO: What to do with the module?
RNImagePreview;

Readme

Keywords

Package Sidebar

Install

npm i @qdrn/qdrn-image-preview

Weekly Downloads

0

Version

0.5.1

License

ISC

Unpacked Size

392 kB

Total Files

114

Last publish

Collaborators

  • liujunrong
  • mobile_master
  • phoobobo
  • xfjtmsm