UNPKG

@nativescript-community/ui-svg

Version:

Adds support for SVGs in your NativeScript apps.

13 lines (12 loc) 490 B
import { ImageAsset, Property, View } from '@nativescript/core'; declare module '@nativescript/core/ui/core/view' { interface ViewCommon { _addChildFromBuilder(name: string, value: any): any; } } export type Stretch = 'none' | 'fill' | 'aspectFill' | 'aspectFit'; export declare const srcProperty: Property<SVGView, string | ImageAsset | File>; export declare const stretchProperty: Property<SVGView, Stretch>; export declare class SVGView extends View { src: string; }