Package Exports
- @onytgvx/expo-image-picker-multiple
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@onytgvx/expo-image-picker-multiple) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
expo-image-picker-multiple
Multiple image selecting package for Expo SDK (React Native) using MediaLibrary and Permissions.
Snack full demo with navbar and compression
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
- Install the repositoryor
$ npm install --save expo-image-picker-multiple
$ yarn add expo-image-picker-multiple
- Add an import to the top of your file
import { ImageBrowser } from 'expo-image-picker-multiple';
- Declare the component in the render method.
<ImageBrowser max={4} onChange={(callback) => { }} callback={(num, onSubmit) => { }} />
Props:
max
: maximum number of photosloadCount
: by default50
loadCompleteMetadata
: Whether to load extra fields like location. Loading all of the information will reduce performance. by defaultfalse
emptyStayComponent
: by defaultnull
noCameraPermissionComponent
: by defaultnull
preloaderComponent
: by defaultActivityIndicator
(loader)renderSelectedComponent
: one-parameter (selected number) function is expected to return the component for the icon/text over the selected picture