0.1.0 • Published 9 years ago
react-native-zzm-image-zoom v0.1.0
react-native-image-zoom
image zoom for android and ios, android code by PhotoView and universal-image-loader, ios code by UIScrollView and SDWebImage
Getting started
Installation
npm install react-native-zzm-image-zoom --saveManual install
iOS
npm install react-native-zzm-image-zoom --save- In XCode, in the project navigator, right click
Libraries➜Add Files to [your project's name] - Go to
node_modules➜react-native-zzm-image-zoomand addimageZoom.xcodeproj - In XCode, in the project navigator, select your project. Add
libImageZoom.ato your project'sBuild Phases➜Link Binary With Libraries
Android
npm install react-native-zzm-image-zoom --save- Open up
android/app/src/main/java/[...]/MainApplication.java Addnew ImageZoomReactPackage()to the list returned by thegetPackages()` method. Append the following lines to
android/settings.gradle:include ':react-native-zzm-image-zoom' project(':react-native-zzm-image-zoom').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-camera/android')Insert the following lines inside the dependencies block in
android/app/build.gradle:compile project(':react-native-zzm-image-zoom')
Usage
var ImageZoom = require('react-native-zzm-image-zoom');
<ImageZoom
style={{flex:1}}
uri=''/>Properties
uri
support url and path
0.1.0
9 years ago