ascoders / react-native-image-viewer

🚀 tiny & fast lib for react native image viewer pan and zoom
MIT License
2.45k stars 580 forks source link

Add ability to pass extra properties to renderIndicator #409

Closed invidian closed 4 years ago

invidian commented 4 years ago

It would be great to make it possible to pass extra properties like navigation details or image details to renderIndicator, so one can build more complex UI in there. For gallery apps, you can sometimes find the date of when the photo was taken, back navigation button etc. Right now there is no way to provide that.

invidian commented 4 years ago

Ah, this can be actually easily done with closure.