Gathering detailed insights and metrics for react-native-zoom-image
Gathering detailed insights and metrics for react-native-zoom-image
Gathering detailed insights and metrics for react-native-zoom-image
Gathering detailed insights and metrics for react-native-zoom-image
Image Viewer Component For React Native (like twitter)
npm install react-native-zoom-image
Typescript
Module System
Node Version
NPM Version
JavaScript (67.62%)
Objective-C (19.42%)
Python (7.2%)
Java (5.76%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
113 Stars
8 Commits
10 Forks
2 Watchers
1 Branches
1 Contributors
Updated on Jun 19, 2024
Latest Version
0.1.2
Package Id
react-native-zoom-image@0.1.2
Size
5.14 kB
NPM Version
5.4.2
Node Version
6.10.0
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
ZoomImage component for React Native Application (ios / android)
Only works with https network images [With the limitation of the current react-native, we can't get original size of required images. This component just zooms them with given size (provided by
imgStyle
prop)]
If you need to support http network images, modify info.plist please :)
install from npm
1npm install --save react-native-zoom-image 2
import in project
1import ZoomImage from 'react-native-zoom-image'; 2import {Easing} from 'react-native'; // import Easing if you want to customize easing function
1let styles = { 2 img: {} // custom styles of original image component 3}; 4// in render function 5<ZoomImage 6 source={{uri: 'https://ooo.0o0.ooo/2017/03/31/58de0e9b287f6.jpg'}} 7 imgStyle={{width: 250, height: 230}} 8 style={styles.img} 9 duration={200} 10 enableScaling={false} 11 easingFunc={Easing.ease} 12/> 13
Prop | Type | Default | Description |
---|---|---|---|
disabled | bool | false | Whether to disable the component or not. |
startCapture | bool | false | Whether to capture start touch event or not. |
moveCapture | bool | false | Whether to capture move event or not. |
responderNegotiate | function | - | Use custom conditions to enable or disable gesture over image modal. |
easingFunc | function | Easing.linear | The easing function of animation. |
showDuration | number | 100 | The duration of showing the image modal. |
closeDuration | number | 140 | The duration of closing the image modal. |
rebounceDuration | number | 800 | The total duration of resetting the position of image. The actual duration changes by the displacement of the image in Y-axis. If the displacement equals to the height of screen, the duration shall be 800ms. |
enableScaling | bool | false | Whether to scale the image when it is polled. |
Method | Params | Description |
---|---|---|
openModal | - | Open image modal |
closeModal | - | Close image modal. |
LICENSE MIT
No vulnerabilities found.
Reason
license file detected
Details
Reason
binaries present in source code
Details
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no SAST tool detected
Details
Reason
Found 0/8 approved changesets -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
104 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-07-07
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More