Multiple image (video, etc.) selecting package for Expo SDK (React Native) using MediaLibrary and Permissions.
$ npm install --save expo-image-picker-multiple
$ expo install expo-image-picker expo-media-library # install peer dependency
or
$ yarn add expo-image-picker-multiple
$ expo install expo-image-picker expo-media-library # install peer dependency
import { ImageBrowser } from 'expo-image-picker-multiple';
Declare the component in the render method.
<ImageBrowser
max={4}
onChange={(num, onSubmit) => {
}}
callback={(callback) => {
}}
/>
max
: maximum number of photosloadCount
: by default 50
loadCompleteMetadata
: Whether to load extra fields like location. Loading all of the information will reduce performance. by default false
emptyStayComponent
: by default null
noCameraPermissionComponent
: by default null
preloaderComponent
: by default ActivityIndicator
(loader)renderSelectedComponent
: one-parameter (selected number) function is expected to return the component for the icon/text over the selected picturemediaType
: photo by default (mediaType)