Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

expo-image-picker-multiple

MonstroDev224ISC1.4.1

Multiple image selecting package for React Native using Expo FileSystem

Expo, imagepicker, multiple, Reat, Native

readme

npm version

expo-image-picker-multiple

Multiple image (video, etc.) selecting package for Expo SDK (React Native) using MediaLibrary and Permissions.

Snack full demo with navbar and compression

Demo

Features

  • Selects multiple images
  • Changes orientation (4 in a row for vertical and 7 for horizontal orientations)
  • Displays the selected image number
  • Permission requests
  • Customization
  • Sorting from new to old

Usage

  1. Install the repository
     $ npm install --save expo-image-picker-multiple
    or
     $ yarn add expo-image-picker-multiple
  2. Add an import to the top of your file
     import { ImageBrowser } from 'expo-image-picker-multiple';
  3. Declare the component in the render method.

     <ImageBrowser
       max={4}
       onChange={(num, onSubmit)  => {
    
       }}
       callback={(callback) => {
    
       }}
     />

    Props:

  4. max: maximum number of photos
  5. loadCount: by default 50
  6. loadCompleteMetadata: Whether to load extra fields like location. Loading all of the information will reduce performance. by default false
  7. emptyStayComponent: by default null
  8. noCameraPermissionComponent: by default null
  9. preloaderComponent: by default ActivityIndicator (loader)
  10. renderSelectedComponent: one-parameter (selected number) function is expected to return the component for the icon/text over the selected picture
  11. mediaType: photo by default (mediaType)