-
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
How I can set placeholder image #265
Comments
I have been setting placeholders like this and it works:
|
@Fsarmento your placeholder is not correct. In original <Image component there is prop defaultImage which is working on iOS and doing what I have described above. |
Anyone coming across this. I had done a similar wrapper to manage placeholder images as the previous comment mentions, however you'll start to hit performance issues when you're dealing with a large number of images and having to update state. I found leveraging the ImageBackground component a suitable alternative if you're dealing with non transparent images. Definitely look forward to a native solution via the library itself. |
Really waiting on this! |
Oh for sure, would love this. |
This PR adds |
wrap it in a helper component
|
Seems still no support for a placeholder, following is my workaround for placeholder
|
I did something like that but I noticed that I lost the cache feature... I mean, every time I "rerender" my component I see the placeholder and after some milliseconds I see the real image |
|
wrap inside imagebackground took more performance |
This library now supports |
It's super laggy with default source with Flashlist (didn't try with flatlist) |
No description provided.
The text was updated successfully, but these errors were encountered: