Skip to content
Multiple image selecting package for expo using MediaLibrary.
JavaScript
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
docs
example add: EmptyText Jul 16, 2019
src
.eslintrc.json Initial commit Jun 26, 2019
.gitignore Initial commit Jun 26, 2019
LICENSE
README.md
package.json
yarn.lock fix: security alert Aug 27, 2019

README.md

npm version

expo-multiple-media-imagepicker

Multiple image selecting package for React Native using Expo MediaLibrary.

features

  • Pick multiple images
  • Displays the selected image counter on picking images
  • Get Asset Information when after pick images.

Demo

usage

  1. Install the repository
    $ npm install --save expo-multiple-media-imagepicker
    or
    $ yarn add expo-multiple-media-imagepicker
  2. Add an import to the top of your file
    import { ImageBrowser } from 'expo-multiple-media-imagepicker';
  3. Declare the component in the render method.
    <ImageBrowser
        max={101} // Maximum number of pickable image. default is None
        headerCloseText={'キャンセル'} // Close button text on header. default is 'Close'.
        headerDoneText={'  完了'} // Done button text on header. default is 'Done'.
        headerButtonColor={'#E31676'} // Button color on header.
        headerSelectText={'枚の画像を選択中'} // Word when picking.  default is 'n selected'.
        mediaSubtype={'screenshot'} // Only iOS, Filter by MediaSubtype. default is display all.
        badgeColor={'#E31676'} // Badge color when picking.
        emptyText={'選択できる画像がありません'} // Empty Text
        callback={this.imageBrowserCallback} // Callback functinon on press Done or Cancel Button. Argument is Asset Infomartion of the picked images wrapping by the Promise. />
You can’t perform that action at this time.