imageUrls | array | yes | Image Source | |
enableImageZoom | boolean | no | Enable image zoom | true |
onShowModal | function
(content?: JSX.Element) => void | no | The callback for show modal | () => {} |
onCancel | function
() => void | no | The callback for cancel modal | () => {} |
flipThreshold | number | no | Swipe threshold of the next page | 80 |
maxOverflow | number | no | The X position maximum, that current page can slide to the next page | 300 |
index | number | no | Init index of images | 0 |
failImageSource | string, object
{uri: string} | no | placeholder for fail | '' |
loadingRender | function
() => React.ReactElement<any> | no | placeholder for loading | () => null |
onSaveToCamera | function
(index?: number => void | no | The callback for save to camera | () => {} |
onChange | function
(index?: number => void | no | When the image changed | () => {} |
saveToLocalByLongPress | boolean | no | Enable save to camera when long press | true |
onClick | function
(onCancel?: function) => void | no | Onclick | (onCancel) => {onCancel()} |
onDoubleClick | function
(onCancel?: function) => void | no | OnDoubleClick | (onCancel) => {onCancel()} |
onSave | function
(url: string) => void | no | The picture is saved to the local method, if you write this method will not call the system default method for Android does not support saveToCameraRoll remote picture, you can call this callback in Android call native interface | |
renderHeader | function
() => React.ReactElement<any> | no | Custom header | () => null |
renderFooter | function
() => React.ReactElement<any> | no | Custom footer | () => null |
renderIndicator | function
(currentIndex?: number, allSize?) => React.ReactElement<any> : number | no | Custom indicator | (currentIndex, allSize) => currentIndex + "/" + allSize |
renderArrowLeft | function
() => React.ReactElement<any> | no | Custom left arrow | () => null |
renderArrowRight | function
() => React.ReactElement<any> | no | Cutsom right arrow | () => null |
onSwipeDown | function
() => void | no | Callback for swipe down | () => null |
footerContainerStyle | object
{someStyle: someValue} | no | custom style props for container that will be holding your footer that you pass | bottom: 0, position: "absolute", zIndex: 9999 |
backgroundColor | string
white | no | Component background color | black |