Gathering detailed insights and metrics for react-native-photo-browser-xc
Gathering detailed insights and metrics for react-native-photo-browser-xc
Gathering detailed insights and metrics for react-native-photo-browser-xc
Gathering detailed insights and metrics for react-native-photo-browser-xc
npm install react-native-photo-browser-xc
Typescript
Module System
Node Version
NPM Version
JavaScript (100%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
3 Stars
4 Commits
1 Watchers
1 Branches
1 Contributors
Updated on Jul 10, 2017
Latest Version
0.2.3
Package Id
react-native-photo-browser-xc@0.2.3
Size
82.27 kB
NPM Version
3.7.3
Node Version
4.1.1
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
1
A full screen image gallery with captions, selections and grid view support for react-native. Layout and API design are inspired by great MWPhotoBrowser library.
The component has both iOS and Android support.
Prop | Type | Description | Default |
---|---|---|---|
mediaList | Array<Media> | List of media objects to display. | [] |
initialIndex | Number | Sets the visible photo initially. | 0 |
alwaysShowControls | Boolean | Allows to control whether the bars and controls are always visible or whether they fade away to show the photo full. | false |
displayActionButton | Boolean | Show action button to allow sharing, copying, etc. | false |
displayNavArrows | Boolean | Whether to display left and right nav arrows on bottom toolbar. | false |
enableGrid | Boolean | Whether to allow the viewing of all the photo thumbnails on a grid. | true |
startOnGrid | Boolean | Whether to start on the grid of thumbnails instead of the first photo. | false |
displaySelectionButtons | Boolean | Whether selection buttons are shown on each image. | false |
useCircleProgress iOS | Boolean | Displays Progress.Circle instead of default Progress.Bar for full screen photos. Check Progress section for more info. | false |
onSelectionChanged | Function | Called when a media item is selected or unselected. | (media, index, isSelected) => {} |
onActionButton | Function | Called when action button is pressed for a photo. Your application should handle sharing process, please see Sharing section for more information. If you don't provide this method, action button tap event will simply be ignored. | (media, index) => {} |
onBack | Function | Called when back button is tapped. | () => {} |
1const media = { 2 thumb: '', // thumbnail version of the photo to be displayed in grid view. actual photo is used if thumb is not provided 3 photo: '', // a remote photo or local media url 4 caption: '', // photo caption to be displayed 5 selected: true, // set the photo selected initially(default is false) 6};
Built-in ProgressBarAndroid component is used for Android. Any additional configuration is not needed.
react-native-progress component is used as progress indicator. The default progress component is Progress.Bar
. You can also use Progress.Circle
component by simply using useCircleProgress
prop, and adding ReactART
library to your Xcode project. For more information please check out react-native-progress repo and React Native documentation.
I tried delivering sharing photo feature but it was complicated to provide for iOS and android out of the box. I now believe it's a better idea to separate sharing logic into another module. Please check out Example project to see a basic ActionSheetIOS implementation for iOS. You may also use available sharing libraries such as react-native-activity-view and react-native-share.
See PhotoBrowserExample.js file.
Follow those steps to run the example:
git clone https://github.com/halilb/react-native-photo-browser && cd react-native-photo-browser/Example
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
0 existing vulnerabilities detected
Reason
license file detected
Details
Reason
Found 0/4 approved changesets -- score normalized to 0
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
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
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