-
Notifications
You must be signed in to change notification settings - Fork 24.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
[Image] No suitable image URL loader found for #3127
Comments
@Mokto - iOS or Android? |
Sorry, i forgot to mention this. IOS only ! Thanks. |
Could you post a short snippet of your image JSX to show what code can cause this bug? Nonexistent image can mean a couple different things. |
Sure ! <Image
source={{uri: album.cover}}
/> You have to know that sometimes album.cover is an empty string. In this case, the message "No suitable image URL loader found for" is occuring. (only in 0.12.0-rc, not in 0.11.0). I will be more accurate next time. |
Thanks for the detail! |
Maybe a simple |
I'd prefer a warning since the failure is obvious in a lot of cases (you don't see your image) and breaking the app is harsh for such a recoverable mistake. My current belief is that it should be hard to accidentally break RN at the JS level and hard to intentionally break it at the native level. That will require more work on our part but lead to better UX and DX with this forgiveness. |
Yeah, sorry, meant warning but wrote |
What I did now is rendering a View with the same style whenever an empty uri is encountered, couldn't think of something better. |
Summary: fixes facebook#3127 Closes facebook#3185 Reviewed By: @svcscm Differential Revision: D2507588 Pulled By: @nicklockwood
@javache @ide react-native 0.14.2 my code: I am pretty sure that the image [email protected] is in http://localhost:8081/assets/ReactNative/images/ directory and also have imported RCTNetworking library |
Summary: fixes facebook#3127 Closes facebook#3185 Reviewed By: @svcscm Differential Revision: D2507588 Pulled By: @nicklockwood
I know this is old but for me adding 'http://' to localhost:3000/ image path solved the problem. |
Hi guys,
I'm stuck by an issue when updating to [email protected] : "No suitable image URL loader found for".
This issue seems to be occurring when image uri is not correct (non existing images).
Thanks !
Please let me know if you need anything else.
The text was updated successfully, but these errors were encountered: