react-native-ig-image-picker

Getting started

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

or

yarn add react-native-ig-image-picker

Library Linking RN < 60 only

$ 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
};

RoadMap

  • IOS like instagram
  • Android like instagram
  • Moving android libary to InsGallery
  • Demo repository
  • Usage Documentation