Skip to content
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

Open
jjspierx opened this issue Sep 27, 2022 · 1 comment
Open

Online fetched source is not a supported image #120

jjspierx opened this issue Sep 27, 2022 · 1 comment

Comments

@jjspierx
Copy link

jjspierx commented Sep 27, 2022

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 , like ignoreContentTypeCheck: 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.

@mahad-totalityplatform
Copy link

mahad-totalityplatform commented Sep 28, 2022

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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants