-
Notifications
You must be signed in to change notification settings - Fork 57
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
Online fetched source is not a supported image #120
Comments
I had the same issue, This comment helped me. |
bhavberi
added a commit
to bhavberi/react-native-user-avatar
that referenced
this issue
Aug 15, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I am getting an warning when using Amazon S3 public urls as the source for an avatar. I can handle the warning, but the image won't load, even though the link is to a valid image that will load in a standard react-native tag. It might be because my S3 links do not have a file extension, and so Amazon is not returning a content type header.
In helpers.js, on line 41, there is a conditional statement that returns false if contentTypeHeader does not start with
image/
. Can that check be removed, or can you add a property to ignore that check , likeignoreContentTypeCheck: true
or something like that?I cloned this repo and removed the check the myself for contentType on line 41 in helpers.js and it works great.
The text was updated successfully, but these errors were encountered: