nativescript-community / ui-image

Advanced and efficient image display plugin which uses Fresco (Android) and SDWebImage (iOS) to implement caching, placeholders, image effects, and much more.
Apache License 2.0
36 stars 9 forks source link

placeholderImageUri working on Android, but not on iOS #35

Closed MrSnoozles closed 8 months ago

MrSnoozles commented 3 years ago

If the demo apps cannot help and there is no issue for your problem, tell us about it

The attribute placeholderImageUri seems to be working on Android but not on iOS. The image is just blank until the real image src is loaded. An example repository is provided.

Which platform(s) does your issue occur on?

Please, provide the following version numbers that your issue occurs with:

Please, tell us how to recreate the issue in as much detail as possible.

Is there any code involved?

Additional info

I thought this might be related to #12 but the issue there is on Android with Angular. Android (with Vue.JS) is working as expected for me.

Screenshot

On Android a placeholder will be shown until the image is loaded. On iOS the screen is blank until the image is loaded.

nsimage-placeholder

farfromrefug commented 3 years ago

@MrSnoozles should be fixed in 4.0.18 can you try?

MrSnoozles commented 3 years ago

Tried it and unless I did something wrong it's not yet working.

I npm updated and confirmed the package.json in node_modules/@nativescript-community/ui-image is at 4.0.18. I then removed the ios platform and ran ns run ios --no-hmr again. I unfortunately still don't see the placeholder image.

farfromrefug commented 3 years ago

@MrSnoozles i have tested your example and sadly i dont know why but N ImageSource.fromFileSync returns null while the path is right. Dont really have the time right now to look further. But the issue does not seem to be on the plugin side.