0.1.0 • Published 8 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 --save
Manual 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-zoom
and addimageZoom.xcodeproj
- In XCode, in the project navigator, select your project. Add
libImageZoom.a
to 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 Add
new ImageZoomReactPackage()to the list returned by the
getPackages()` 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
8 years ago