Props | type | default | etc |
---|---|---|---|
*callback | func | (selectedImages:PhotoProps[],currentImage:PhotoProps)=>void | |
initialNumToRender | number | 5 | Flatlist's props |
groupTypes | CameraRoll.GroupType | "SavedPhotos" | "Album","All","Event","Faces","Library","PhotoStream","SavedPhotos" |
assetType | CameraRoll.GroupType | "Photos" | "ALL","Videos","Photos" |
selected | any[] | [] | Set array with which is returned by callback |
selectSingleItem | boolean | false | If true ,maximum option is ignored |
maximum | number | 15 | To use this option,selectSingleItem option must be false |
imagesPerRow | number | 3 | Not Recommend to be over 10 |
imageMargin | number | 5 | :) |
containerWidth | number | window.width | You can use react-native Dimensions to get window width |
selectedMarker | JSX.Element | (selected:number)=>JSX.Element | 'circle mark' | 'selected' is starts from 1 |
backgroundColor | string | 'white' | :) |
emptyText | string | "No photos." | :) |
emptyTextStyle | TextStyle | textAlign: 'center' |
:) |
loader | JSX.Element | <ActivityIndicator size="large" /> |
It's located at bottom of the photos |
loadingMoreLoader | JSX.Element | <ActivityIndicator size="large" /> |
It's located in center of the window |
loadingMoreContainerStyle | ViewStyle | ||
useCamera | boolean | false | |
cameraButtonIcon | JSX.Element | Camera png image | |
cameraPreviewProps | RNCameraProps | Props of the react-native-camera |
|
cameraPreviewStyle | ViewStyle | ||
cameraFlipIcon | JSX.Element | Flip png image | |
cameraCaptureIcon | JSX.Element | Circle mark | |
imageZoom(Deprecated) | boolean | false | Deprecated 2.0.4 < |
zoomImageCloseButton | JSX.Element | close image | |
zoomImageCloseContainerStyle | ViewStyle |