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

Failure image is not shown on Android #23

Open
yvdv-one opened this issue Dec 12, 2019 · 0 comments
Open

Failure image is not shown on Android #23

yvdv-one opened this issue Dec 12, 2019 · 0 comments

Comments

@yvdv-one
Copy link
Contributor

Which platform(s) does your issue occur on?

  • Android/Angular

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

  • nativescript-image 3.0.0

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

The failure image is not shown on Android device.
Uri's are set in a directive like this:
this.image.placeholderImageUri = this.defaultsService.getDefaultImageFor(this.type); this.image.failureImageUri = this.defaultsService.getDefaultImageFor(this.type); this.image.src = this.src;

On failure, no image is shown.

The workaround I currently use is:
this.image.on('failure', () => this.image.src = this.defaultsService.getDefaultImageFor(this.type));

But this should not be necessary.

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

1 participant