Multiple image selecting package for Expo SDK (React Native) using MediaLibrary and Permissions.
Install the repository
$ npm install --save expo-image-picker-multiple
or
$ 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) => {
}}
/>
max
: maximum number of photosloadCount
: by default 50
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 pictureAuthor: MonstroDev
Demo: https://snack.expo.io/@monstrodev/expo-image-picker-multiple-example
Source Code: https://github.com/MonstroDev/expo-image-picker-multiple
#react-native #react #mobile-apps