0
votes

I'm building out an iPhone and Android app using nativescript angular.

Since the app will be loading images in a list view, I have the nativescript fresco plugin to take care of loading the images and it works beautifully btw. Unfortunately this only take care of Android side.

I was wondering what other developers use when developing for nativescript apps for IOS. 

clarification: what I'm really trying to figure out is what should I use to replace fresco when developing for ios.

Also, I now have all these Fresco tags for all the images for android. But what do you do when you are ready to develop for IOS? Do I need to have *ngIF statements on all of them for android and use default Image tags for IOS?

2

2 Answers

4
votes

You can use the <android></android> or <ios></ios> tags for platform specific views

e.g

<android>
<FrescoDrawee [imageUri]="someImage"></FrescoDrawee>
</android>


<ios>
<Image [src]="someImage"></Image>
</ios>
0
votes

There is also the SDWebImage library which can automatically manage caching.

http://cocoadocs.org/docsets/SDWebImage/4.1.2/