All Projects → FidMe → React Native Photo Gallery

FidMe / React Native Photo Gallery

Licence: mit
Simple, yet powerful image gallery for React Native. Features zoom and pagination ! 🖼

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to React Native Photo Gallery

Zing Gallery
基于node.js的web相册,让摄影照片的展示更加简单 Web albums based on node.js, more simple to show photography photos
Stars: ✭ 401 (+281.9%)
Mutual labels:  photos, gallery
Thumbsup
Generate static HTML photo / video galleries
Stars: ✭ 493 (+369.52%)
Mutual labels:  photos, gallery
Insgallery
📸 Instagram-like image picker for Android (一款 UI 炫酷高仿 Instagram 的图片、视频选择器)
Stars: ✭ 409 (+289.52%)
Mutual labels:  photos, gallery
Rocket-Notes
The World's Fastest Note Taking App. Fast. Simple. Create a note in one tap! Create image and text notes directly from your home screen!
Stars: ✭ 20 (-80.95%)
Mutual labels:  photos, gallery
Lychee
A great looking and easy-to-use photo-management-system you can run on your server, to manage and share photos.
Stars: ✭ 816 (+677.14%)
Mutual labels:  photos, gallery
Zoomwall.js
A content-focused photo gallery using a horizontal masonry layout that scales up in lightbox mode.
Stars: ✭ 254 (+141.9%)
Mutual labels:  photos, gallery
Nanogallery2
a modern photo / video gallery and lightbox [JS library]
Stars: ✭ 488 (+364.76%)
Mutual labels:  photos, gallery
google-photos-vue
Google Photos album viewer built with Vue.js
Stars: ✭ 17 (-83.81%)
Mutual labels:  photos, gallery
Paparazzo
Custom iOS camera and photo picker with editing capabilities
Stars: ✭ 714 (+580%)
Mutual labels:  photos, gallery
React Grid Gallery
Justified image gallery component for React
Stars: ✭ 571 (+443.81%)
Mutual labels:  photos, gallery
gatsby-theme-gallery
🏞 A Gatsby Theme for adding a gallery to your site.
Stars: ✭ 40 (-61.9%)
Mutual labels:  photos, gallery
Photo view
📸 Easy to use yet very customizable zoomable image widget for Flutter, Photo View provides a gesture sensitive zoomable widget. Photo View is largely used to show interacive images and other stuff such as SVG.
Stars: ✭ 1,280 (+1119.05%)
Mutual labels:  photos, gallery
hes-gallery
Light, dependency free, responsive gallery script
Stars: ✭ 27 (-74.29%)
Mutual labels:  photos, gallery
Zlphotobrowser
Wechat-like image picker. Support select normal photos, videos, gif and livePhoto. Support edit image and crop video. 微信样式的图片选择器,支持预览/相册内拍照及录视频、拖拽/滑动选择,编辑图片/视频,支持多语言国际化等功能;
Stars: ✭ 3,962 (+3673.33%)
Mutual labels:  photos, gallery
jekyll-photos
Dead simple solution to add a photo gallery to a Jekyll site.
Stars: ✭ 47 (-55.24%)
Mutual labels:  photos, gallery
Rxpaparazzo
RxJava extension for Android to take images using camera and gallery and pick files up
Stars: ✭ 467 (+344.76%)
Mutual labels:  photos, gallery
myphotoshare
MOVED TO GITLAB! --- A Web 2.0 Photo Gallery Done Right via Static JSON, Dynamic Javascript and a bit of php for sharing
Stars: ✭ 12 (-88.57%)
Mutual labels:  photos, gallery
Selfhosted-Google-Photos-Alternative
A complete guide on exiting Google, Amazon or any proprietary service Photos storage with all the features you would want.
Stars: ✭ 143 (+36.19%)
Mutual labels:  photos, gallery
React Viewer
react image viewer, supports rotation, scale, zoom and so on
Stars: ✭ 502 (+378.1%)
Mutual labels:  photos, gallery
Photo Blog
The Photo Blog Application based on Laravel 5 and Vue.js 2 + Prerender
Stars: ✭ 55 (-47.62%)
Mutual labels:  photos, gallery

react-native-photo-gallery

Demo image

This library is a very simple, yet powerfull gallery component. It provides a native similar gallery including horizontal swiper, photo view, zoom, and pagination. Tested without stutters with 1000+ images.

Getting started

$ npm install react-native-photo-gallery --save

This library depends on react-native-photo-view to display images on Android. So you must also do the following :

$ react-native link react-native-photo-view

Usage

import Gallery from 'react-native-photo-gallery';

class YourGalleryComponent extends Component {
  render() {
    const data = [
      {
        id: 'first image',
        image: require('./yourImage.jpg'),
        thumb: require('./yourImageThumb.jpg'),
        overlay: <Overlay />
      },
      {
        id: 'Second image',
        image: require('./yourImage2.jpg'),
        thumb: require('./yourImageThumb2.jpg'),
        overlay: <OtherOverlay />
      }
    ];

    return <Gallery data={data} />;
  }
}

It is up to you to render a header, navigation bar, etc.

Props Type Description
backgroundColor String Changing the background color of gallery and pagination
data Array of object See Data below
initialPaginationSize Number Default to 10
initialNumToRender Number Default to 4
initialIndex Number Default to 0
overlay Component If present, a view that will be displayed above the image

Data object

Data prop an array objects that will configure slides. You can provide the following props.

Key Type Required Description
id String Yes A unique identifier
image Image source Yes See <Image source={}/> on react native documentation.
thumb Image source No Will be used as a thumbnail on pagination, will default to imageif not provided
overlay Component No A view that will be displayed above the image, for metas infos for example
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].