react-native-ig-image-picker

1.0.2 • Public • Published

react-native-ig-image-picker

Getting started

$ npm install react-native-ig-image-picker --save

Mostly automatic installation

$ react-native link react-native-ig-image-picker

Usage

import {showImagePicker, libraryPicker, videoPicker} from 'react-native-ig-image-picker';

const openPicker = async () => {
 const response = await showImagePicker({})
}

Picker IOS options

const defaultOption = {
  compressImageMaxWidth: 780,
  compressImageMaxHeight: 780,
  library: {
    maxNumberOfItems: 10,
    defaultMultipleSelection: false,
    minNumberOfItems: 1
  },
  video: {
    recordingTimeLimit: 60.0,
    libraryTimeLimit: 60,
    minimumTimeLimit: 3,
    trimmerMaxDuration: 60,
    trimmerMinDuration: 3
  },
  showsVideoTrimmer: true,
  showsPhotoFilters: true,
  usesFrontCamera: false
};

Picker Android options

const defaultOption = {
  showCamera: true,
  videoSinglePick: false,
  singlePickWithAutoComplete: false,
  imageOnly: false,
  videoOnly: false,
  maxCount: 5,
  columnCount: 4
};

Readme

Keywords

Package Sidebar

Install

npm i react-native-ig-image-picker

Weekly Downloads

3

Version

1.0.2

License

MIT

Unpacked Size

91.7 kB

Total Files

27

Last publish

Collaborators

  • bunhouth