UNPKG

863 BTypeScriptView Raw
1import { ImageAsset as ImageAssetDefinition, ImageAssetOptions } from '.';
2import { Observable } from '../data/observable';
3export declare class ImageAssetBase extends Observable implements ImageAssetDefinition {
4 private _options;
5 private _nativeImage;
6 ios: PHAsset;
7 android: string;
8 constructor();
9 get options(): ImageAssetOptions;
10 set options(value: ImageAssetOptions);
11 get nativeImage(): any;
12 set nativeImage(value: any);
13 getImageAsync(callback: (image: any, error: Error) => void): void;
14}
15export declare function getAspectSafeDimensions(sourceWidth: any, sourceHeight: any, reqWidth: any, reqHeight: any): {
16 width: number;
17 height: number;
18};
19export declare function getRequestedImageSize(src: {
20 width: number;
21 height: number;
22}, options: ImageAssetOptions): {
23 width: number;
24 height: number;
25};