react-native-ig-image-picker
v1.0.2
Published
Instagram-like image picker & filters for iOS
Downloads
32
Readme
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
};