• Stars
    star
    423
  • Rank 102,544 (Top 3 %)
  • Language
    JavaScript
  • License
    MIT License
  • Created over 8 years ago
  • Updated almost 2 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

πŸ“· A React Native component providing images selection from camera roll

version npm

react-native-camera-roll-picker

CameraRoll Picker component for React native

Requires react-native >=0.43.0

Add to Project

  • Install component through npm
$ npm install react-native-camera-roll-picker --save
  • Install CameraRoll from @react-native-community
$ npm install @react-native-community/cameraroll
  • Require component
import CameraRollPicker from 'react-native-camera-roll-picker';

Basic Usage

<CameraRollPicker
  callback={this.getSelectedImages} />

Props

  • callback : Callback function when images was selected. (is required!). Return a selected image array and current selected image.
  • initialNumToRender : Specifies how many rows we want to render on our first render pass. (Default: 5)
  • groupTypes : The group where the photos will be fetched, one of 'Album', 'All', 'Event', 'Faces', 'Library', 'PhotoStream' and 'SavedPhotos'. (Default: SavedPhotos)
  • assetType : The asset type, one of 'Photos', 'Videos' or 'All'. (Default: Photos)
  • selected : Already be selected images array. (Default: [])
  • selectSingleItem : Boolean to select only one single image at time. (Default: false)
  • maximum : Maximum number of selected images. (Default: 15)
  • imagesPerRow : Number of images per row. (Default: 3)
  • imageMargin : Margin size of one image. (Default: 5)
  • containerWidth : Width of camer roll picker container. (Default: device width)
  • selectedMarker : Custom selected image marker component. (Default: checkmark).
  • backgroundColor : Set background color. (Default: white).
  • emptyText: Text to display instead of a list when there are no photos found. (Default: 'No photos.')
  • emptyTextStyle: Styles to apply to the emptyText. (Default: textAlign: 'center')
  • loader: Loader component node. (Default: <ActivityIndicator />)

Run Example

$ git clone https://github.com/jeanpan/react-native-camera-roll-picker.git
$ cd react-native-camera-roll-picker
$ cd Example
$ npm install
$ react-native run-ios

More Repositories

1

create-react-pwa-boilerplate

πŸš€ A boilerplate for Progressive Web Apps created with the create-react-app.
HTML
11
star
2

world-earthquake-map

An interactive map showing earthquakes that happened worldwide in the last 7 days.
JavaScript
4
star
3

nyc-subway-entrances-map

πŸšƒ A map shows all the subway entrances in NYC and provides nearby entrances search.
CSS
4
star
4

e2e-testing-example

An e2e-testing example with nightwatch.js + sauce labs + travis-ci + heroku
JavaScript
3
star
5

create-react-app-css-modules

πŸš€ A boilerplate using css-modules & SCSS with ejected create-react-app.
JavaScript
3
star
6

jeanpan.github.io

🍺
HTML
2
star
7

weatherCSS

Simple weather animation with pure CSS.
CSS
2
star
8

create-react-stripe

JavaScript
2
star
9

node-stripe-server

JavaScript
1
star
10

color-code-converter

JavaScript
1
star
11

notes

My tech notes. πŸ“”
1
star
12

webrtc-p2p

🚧 A multiparty conferencing application built with peer-to-peer WebRTC.
JavaScript
1
star
13

bookmarklets

πŸ”– The bookmarklets that makes my life easier.
HTML
1
star
14

grid

A simple 12 column based grid layout.
CSS
1
star
15

bootstrap-portfolio-template

1
star
16

blog

✍🏼
CSS
1
star
17

iframe-example

HTML
1
star
18

inside-airbnb-in-nyc

Pratt XSAVI - 800 : Assignment #2
JavaScript
1
star
19

jptab

a simple jquery tab plugin
HTML
1
star
20

coursera-data-visualization

HTML
1
star
21

cs-javascript

JavaScript
1
star
22

react-native-nav-tabs-example

React Native Nav Tabs Example
Objective-C
1
star
23

webrtc-sfu

🚧 A multiparty conferencing application built with selective forwarding unit WebRTC.
1
star
24

code-jam-qualification-round-2018

Google Code Jam Qualification Round 2018 with JavaScript
JavaScript
1
star
25

hosted-app-example

Example for hosted App.
HTML
1
star