-
Notifications
You must be signed in to change notification settings - Fork 124
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
Undefined is not an object (evaluating 'this.props.preview') [Android] #10
Comments
Adding this in Image.js line 51 seems to do the job :
|
Maybe it causes some side effects, I haven't digged so much in your code :)
It does not really fix it. At least I don't get the redscreen anymore, but now the pictures is not displayed with a full opacity. |
@alanlanglois Thank you so much! I never had the error myself but some user have reported it. Do you think it can be the animation? I guess it wouldn't hurt to do more clean up on |
@wcandillon : Thanks for the fast reply :) |
@alanlanglois You are 100% correct, I'll try to push a fix for it asap. |
@wcandillon Looking the RN doc, it seems like there is no way to cancel an Image loading in the RN Image component... that would have been very convenient :) Sounds like we are not alone! |
Woah thank you so much for your support on that issue! |
Feel free to re-open is needed :) |
@wcandillon it's fixed! But'ill maybe open a new one though :) I got the picture loaded, but sometimes (and it's kind of random), the picture won't appear fully oppacified, if I go back wait a little a try again it will eventually work as expected... or not, until it works again, and doesn't again. Thanks for the fix! Cheers, |
Thanks for your awesome lib, it works pretty well!
However I get this error sometimes. I'm testing my app super fast, it might be related.
My guess is that the component is maybe removed before download is finished.
I'll dig a little more and let you know if I find something.
Cheers,
The text was updated successfully, but these errors were encountered: