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

placeholderImageUri working on Android, but not on iOS #35

Closed
MrSnoozles opened this issue Dec 8, 2020 · 3 comments
Closed

placeholderImageUri working on Android, but not on iOS #35

MrSnoozles opened this issue Dec 8, 2020 · 3 comments

Comments

@MrSnoozles
Copy link

MrSnoozles commented Dec 8, 2020

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?

  • iOS only
  • iOS 13.6.1
  • iPhone 6s

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

  • CLI: 7.0.11
  • Cross-platform modules: 7.0.13
  • Plugin(s):
    • "@nativescript-community/ui-image": "4.0.17",

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
Copy link
Member

@MrSnoozles should be fixed in 4.0.18 can you try?

@MrSnoozles
Copy link
Author

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
Copy link
Member

@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.

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