-
Notifications
You must be signed in to change notification settings - Fork 24.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Android] Support for Image onError #7440
Comments
The Java implementation of Image.prefetch calls the rejection callback on error so Fresco might expose errors now, worth revisiting. |
Same with ios, i want to set default image onError, dunno how. |
@ajoshdee, you'd need to make a component that handles the error, sets a state indicating there's an error, and then using that default image when an error exists |
@brentvatne This 68b2f49 commit adds event dispatching, but JS component does not receive it (but |
We closed the referenced pull request as "working as intended" so I think we should close this issue as well. |
@lacker it sounds like the conclusion there is that |
Our goal right now is to focus the github issues for bug reports - it had been months on this anyway with no activity. If someone has a proposal for how to fix this then I think it would be worth opening another issue to debate it. |
Sounds good @lacker - thanks for explaining. Dropping this here for anyone that comes seeking this issue, this is a solution we threw together to achieve the platform consistency: https://github.com/robinpowered/react-native-android-image-polyfill |
Hey Guys,
Will there be support for an onError callback on Image for Android? I want to set an error image if the image fails to load, without resorting to hacking around onLoad and onLoadEnd. If I'm overlooking an obvious easy way to do this please let me know :)
The text was updated successfully, but these errors were encountered: