UNPKG

@nativescript/core

Version:

A JavaScript library providing an easy to use api for interacting with iOS and Android platform APIs.

24 lines (23 loc) 1.18 kB
import { ImageBase, stretchProperty, imageSourceProperty, srcProperty, tintColorProperty } from './image-common'; import { Color } from '../../color'; import { ImageSource } from '../../image-source'; import { ImageAsset } from '../../image-asset'; export * from './image-common'; export declare class Image extends ImageBase { [stretchProperty.getDefault]: () => "aspectFit"; [stretchProperty.setNative]: (value: "none" | "aspectFill" | "aspectFit" | "fill") => void; [tintColorProperty.getDefault]: () => Color; [tintColorProperty.setNative]: (value: Color) => void; [imageSourceProperty.getDefault]: () => ImageSource; [imageSourceProperty.setNative]: (value: ImageSource) => void; [srcProperty.getDefault]: () => any; [srcProperty.setNative]: (value: string | ImageSource | ImageAsset) => void; nativeViewProtected: org.nativescript.widgets.ImageView; useCache: boolean; createNativeView(): org.nativescript.widgets.ImageView; initNativeView(): void; disposeNativeView(): void; resetNativeView(): void; _createImageSourceFromSrc(value: string | ImageSource | ImageAsset): void; private _calculateKeepAspectRatio; }