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

[Feature Request] Support Requesting Multiple Images (Multi-URI) #106

Open
vahidvdn opened this issue Feb 12, 2019 · 7 comments
Open

[Feature Request] Support Requesting Multiple Images (Multi-URI) #106

vahidvdn opened this issue Feb 12, 2019 · 7 comments
Labels

Comments

@vahidvdn
Copy link

Is there any way to have Multiple Images (Multi-URI)? As native plugin supports it.

I want to first load a smaller image , then show a high resolution image. Any idea?

@vahidvdn
Copy link
Author

I could be able to handle this by finalImageSet event. First I make a small image visible, and after the main image has been downloaded, I make the main image visible. But in list view, only 4 first items work fine. (Items are in viewport). This relates to RadListView virtualization. I don't know why this happen.

Here is my code:

<StackLayout [visibility]="item.isLoadingThumb ? 'visible' : 'collapse'">
    <FrescoDrawee verticalAlignment="center" aspectRatio="1"
        fadeDuration="1" blurRadius="3" autoPlayAnimations="false"
        [imageUri]="'http://domain.com/'+item.post_picture_thumb"></FrescoDrawee>
</StackLayout>

<StackLayout [visibility]="item.isLoadingMain ? 'visible' : 'collapse'">
    <FrescoDrawee verticalAlignment="center" aspectRatio="1"
        fadeDuration="1" (finalImageSet)="onFinalImageSet($event, i)"
        autoPlayAnimations="false" [imageUri]="'http://domain/'+item.post_picture"></FrescoDrawee>
</StackLayout>

And TS:

onFinalImageSet(args: FinalEventData, count) {
  console.log(count);  // Only print up to 4
  this.items[count].isLoadingThumb = false;
  this.items[count].isLoadingMain  = true;
}

@vahidvdn
Copy link
Author

That is very strange that works fine with ListView instead of RadListView.

@elena-p
Copy link
Contributor

elena-p commented Feb 27, 2019

Hi @vahidvdn,

As discussed in this thread #50 we will be deprecating the fresco plugin and redirect users to the nativescript-image plugin, which can be used in both Android and iOS. There is still some polishing work to be done before we finalize the process, but we will not be including new functionalities in the fresco plugin.

@vahidvdn
Copy link
Author

Hi @elena-p

Thanks for your reply. So, waiting for upcoming news for the new plugin. Cheers.

@vahidvdn
Copy link
Author

@elena-p Do you have plan to expand nativescript-image-cache-it plugin? It's not really stable and has some issues like mentioned here.

@elena-p
Copy link
Contributor

elena-p commented Feb 28, 2019

Hi @vahidvdn,
the nativescript-image-cache-it plugin is not maintained by the NativeScript team and I cannot provide you with details for future versions and improvements.

@vahidvdn
Copy link
Author

Hi @elena-p
Sorry, I considered nativescript-image plugin will be a fork of nativescript-image-cache-it plugin.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants