Retry functionality
aprilmintacpineda opened this issue · 4 comments
Have useResponsiveImageView
to return a call back that can be used to trigger retry load. The loading may fail for various reasons, so having retry functionality is a user-friendly thing.
I managed to get around this by doing:
useResponsiveImageView({
source: {
uri,
retryCount
},
onLoad,
onError
});
retryCount
is a dynamic variable internally managed as a state, then I just increment it when the user taps on retry button, changing it causes the useEffect
on the hook to be called again.
But this functionality should be supported internally.
Hey, thanks for the request! 👋
I'm not currently working on anything in RN so this library is a bit lower on my priority list at the moment, but I'll see what I can do. PRs welcome if anyone gets to it before I can!
I'll try to send one when I can, but probably on Friday
:tada: This issue has been resolved in version 2.1.0 :tada:
The release is available on:
Your semantic-release bot 📦🚀