Skip to content
This repository was archived by the owner on Apr 14, 2024. It is now read-only.

Commit b31ab42

Browse files
committed
Updates readme with renderLoading and renderError props
1 parent fd6c919 commit b31ab42

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,8 @@ This component utilizes **[@ldn0x7dc/react-native-view-pager](https://github.com
4949
* **initialPage**, **pageMargin**, **onPageSelected**, **onPageScrollStateChanged**, **onPageScroll**: inherited from **[@ldn0x7dc/react-native-view-pager](https://github.com/ldn0x7dc/react-native-view-pager)**. Check the link for more details.
5050
* **onSingleTapConfirmed**: Called after user single taped( not a double tap)
5151
* **onGalleryStateChanged**: function. (idle) => {}.
52+
* **renderLoading**: (optional) function to render anything while the image loads (e.g. a spinner).
53+
* **renderError**: (optional) function to render anything if the image fails to load (e.g. an error message).
5254

5355

5456

0 commit comments

Comments
 (0)