@qdrn/qdrn-image-preview
v0.5.1
Published
Image Preview
Downloads
4
Readme
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
- 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 thegetPackages()
method
- 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')
- 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;