Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

nativescript display image from web

npm i @ticnat/nativescript-image-cache

//In app.module.ts, or any specific module you want to use this plugin:

import { registerElement } from 'nativescript-angular';
registerElement('ImageCache', () => require('@ticnat/nativescript-image-cache').ImageCache);

<GridLayout rows="*" columns="*">
	<ImageCache stretch="fill" row="0" col="0" 
		placeholder="localPlaceholderImgorResUrl" 
		src="#your image url here"> </ImageCache>
</GridLayout>
Source by www.npmjs.com #
 
PREVIOUS NEXT
Tagged: #nativescript #display #image #web
ADD COMMENT
Topic
Name
4+3 =