-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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] onLoad
will never get fired when height and width is set to 0
#865
Comments
onLoad
will never get fired when height and width set to 0 ononLoad
will never get fired when height and width is set to 0
Related:
#446 should fix the issue but is open for almost 2 years now. |
thanks @demedos for specifying the fix, i have gone through the fix #446 but seems source is changed after that. applied fix of target size on view converter class , it is working fine now. tested on android 11 and 10. don't know much about its impact in other dependencies. i am attaching the code of patch file .
and i am using wrapper component like below to show the placeholder before image load
|
Beware that this line makes android crash when huge images are being loaded as no compression will take place
|
rn 0.67.3 can be used. |
Describe the bug
onLoad
will never get fired when height and width set to 0 on androidTo Reproduce
Steps to reproduce the behavior if possible, or a link to a reproduction repo:
Expected behavior
onLoad
should get fired even with initial zero width and height.Screenshots
Dependency versions
The text was updated successfully, but these errors were encountered: