Giter Club home page Giter Club logo

expo-image-picker-multiple's Introduction

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
    $ 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
  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:

  • max: maximum number of photos
  • loadCount: 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 picture
  • mediaType: photo by default (mediaType)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.