Gathering detailed insights and metrics for react-native-photo-browser
Gathering detailed insights and metrics for react-native-photo-browser
Gathering detailed insights and metrics for react-native-photo-browser
Gathering detailed insights and metrics for react-native-photo-browser
react-native-pure-photo-browser
react native photo browser
@agartha/react-native-photo-browser
Local and remote photo browser with captions, selections and grid view support for react native.
react-native-photo-browser-xc
Local and remote photo browser with captions, selections and grid view support for react native.Forked From react-native-photo-browser
dadbob-react-native-photo-browser
CLone of react-native-photo-browser of Halil Bilir. Local and remote photo browser with captions, selections and grid view support for react native.
Local and remote media gallery with captions, selections and grid view support for react native.
npm install react-native-photo-browser
Typescript
Module System
Node Version
NPM Version
Replacing ViewPager with FlatList
Updated on Jan 14, 2020
Using FlatList instead of ListView
Updated on Oct 22, 2019
Upgraded to react-native 0.50.1
Updated on Nov 06, 2017
Upgraded to react-native 0.43.3
Updated on Apr 18, 2017
Fixed grid layout for react-native version > 0.28
Updated on Jul 19, 2016
Updated react imports for react-native 0.26.0 upgrade
Updated on May 20, 2016
JavaScript (84.43%)
Objective-C (9.07%)
Starlark (3.57%)
Java (2.94%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
723 Stars
115 Commits
184 Forks
26 Watchers
13 Branches
25 Contributors
Updated on Apr 19, 2025
Latest Version
0.7.0
Package Id
react-native-photo-browser@0.7.0
Unpacked Size
143.16 kB
Size
85.66 kB
File Count
47
NPM Version
6.11.3
Node Version
12.12.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
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.
npm install react-native-photo-browser --save
Prop | Type | Description | Default |
---|---|---|---|
style | Style | Overrides default container style. | null |
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 |
alwaysDisplayStatusBar | Boolean | Whether to display the OS Status Bar. | false |
displayTopBar | Boolean | Whether to display top bar. | true |
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. | () => {} |
itemPerRow | Number | Sets images amount in grid row. | 3 |
onPhotoLongPress | Function | Called when a long press trigged on a photo. | () => {} |
delayPhotoLongPress | Number | The long press delay in ms . | 1000 |
square | Boolean | Displays the thumbnails as squares(same width, height). | false |
gridOffset | Number | Offset the width of the grid from the screen width. | 0 |
customTitle | Function | Custom title in full screen mode. | (index, rowCount) => { return '' } |
customBottomBarButton | Component | Use a custom component in the bottom bar to the left of the Share button. The visibility of the Share button can still be controlled with displayActionButton . | null |
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 id: 1, // unique identifer for the photo; can be omitted if the `thumb`/`photo` will always be unique 5 caption: '', // photo caption to be displayed 6 selected: true, // set the photo selected initially(default is false) 7};
Built-in ActivityIndicator 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
npm install
No vulnerabilities found.
Reason
license file detected
Details
Reason
binaries present in source code
Details
Reason
Found 8/20 approved changesets -- score normalized to 4
Reason
project is archived
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
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
62 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