1.0.6-rc • Published 6 years ago

react-native-upload-multiple-images v1.0.6-rc

Weekly downloads
18
License
MIT
Repository
github
Last release
6 years ago

react-native-upload-multiple-images

Greenkeeper badge

Media Picker for React Native

Props

  • callback: required Callback function when images was selected.
  • 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)
  • maximum: Maximum number of selected images. (Default: 15)
  • imagesPerRow: Number of images per row. (Default: 3)
  • imageMargin: Margin size of one image. (Default: 5)
  • selectedMarker: Custom selected image marker component. (Default: checkmark).
  • backgroundColor: Set background color. (Default: white).
  • selected: set preselected items (Default: none ).
  • showLoading: show loading spinners before image will show? (Default: true ).

Installation

npm i -S react-native-upload-multiple-images

or

yarn add react-native-upload-multiple-images

Usage Examples

import MediaPicker from "react-native-mediapicker"
<MediaPicker
  callback={items => this.whenClicked(items)}
  groupTypes="SavedPhotos"
  assetType="Photos"
  maximum={1}
  imagesPerRow={3}
  imageMargin={5}
  showLoading={true}
  backgroundColor="black"
  selectedMarker={
    <Image
      style={[styles.checkIcon, {width: 25, height: 25, right: this.props.imageMargin + 5},]}
      source={require('./checkmark.png')}
    />
  } />
1.0.6-rc

6 years ago

1.0.6

6 years ago

1.0.5-rc

6 years ago

1.0.5

6 years ago

1.0.4-rc

6 years ago

1.0.4

6 years ago

1.0.3-rc

6 years ago

1.0.3

6 years ago

1.0.2-rc

6 years ago

1.0.2

6 years ago