Gathering detailed insights and metrics for react-native-image-viewing
Gathering detailed insights and metrics for react-native-image-viewing
Gathering detailed insights and metrics for react-native-image-viewing
Gathering detailed insights and metrics for react-native-image-viewing
react-native-image-viewing-sieuhuflit
React Native modal component for viewing images as a sliding gallery
better-react-native-image-viewing
React Native modal component for viewing images as a sliding gallery with the android scale issue fix
react-native-image-viewing-extend
React Native modal component for viewing images as a sliding gallery
@maximedeoliveira/react-native-image-viewing
React Native modal component for viewing images as a sliding gallery
Tiny, purely TS, modal component for viewing images 🏙
npm install react-native-image-viewing
Typescript
Module System
Node Version
NPM Version
TypeScript (98.61%)
JavaScript (1.39%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
928 Stars
70 Commits
304 Forks
19 Watchers
13 Branches
20 Contributors
Updated on Jul 01, 2025
Latest Version
0.2.2
Package Id
react-native-image-viewing@0.2.2
Unpacked Size
69.69 kB
Size
13.00 kB
File Count
43
NPM Version
8.3.1
Node Version
16.14.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
2
React Native modal component for viewing images as a sliding gallery.
Try with Expo: https://expo.io/@antonkalinin/react-native-image-viewing
1yarn add react-native-image-viewing
or
1npm install --save react-native-image-viewing
1import ImageView from "react-native-image-viewing"; 2 3const images = [ 4 { 5 uri: "https://images.unsplash.com/photo-1571501679680-de32f1e7aad4", 6 }, 7 { 8 uri: "https://images.unsplash.com/photo-1573273787173-0eb81a833b34", 9 }, 10 { 11 uri: "https://images.unsplash.com/photo-1569569970363-df7b6160d111", 12 }, 13]; 14 15const [visible, setIsVisible] = useState(false); 16 17<ImageView 18 images={images} 19 imageIndex={0} 20 visible={visible} 21 onRequestClose={() => setIsVisible(false)} 22/>
Prop name | Description | Type | Required |
---|---|---|---|
images | Array of images to display | ImageSource[] | true |
keyExtractor | Uniqely identifying each image | (imageSrc: ImageSource, index: number) => string | false |
imageIndex | Current index of image to display | number | true |
visible | Is modal shown or not | boolean | true |
onRequestClose | Function called to close the modal | function | true |
onImageIndexChange | Function called when image index has been changed | function | false |
onLongPress | Function called when image long pressed | function (event: GestureResponderEvent, image: ImageSource) | false |
delayLongPress | Delay in ms, before onLongPress is called: default 800 | number | false |
animationType | Animation modal presented with: default fade | none , fade , slide | false |
presentationStyle | Modal presentation style: default: fullScreen Android: Use overFullScreen to hide StatusBar | fullScreen , pageSheet , formSheet , overFullScreen | false |
backgroundColor | Background color of the modal in HEX (#000000EE) | string | false |
swipeToCloseEnabled | Close modal with swipe up or down: default true | boolean | false |
doubleTapToZoomEnabled | Zoom image by double tap on it: default true | boolean | false |
HeaderComponent | Header component, gets current imageIndex as a prop | component, function | false |
FooterComponent | Footer component, gets current imageIndex as a prop | component, function | false |
To start contributing clone this repo and then run inside react-native-image-viewing
folder:
1yarn
Then go inside example
folder and run:
1yarn & yarn start
This will start packager for expo so you can change /src/ImageViewing
and see changes in expo example app.
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
Found 9/21 approved changesets -- score normalized to 4
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- 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
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
70 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