Hierarchy

  • NativeMobileComponent<any, ISvgImage>
    • Svgimage

Implements

Properties

_nativeObject: any

Accessors

  • get nativeObject(): any
  • Returns any

  • set nativeObject(value: any): void
  • Parameters

    • value: any

    Returns void

  • get ios(): TProps["ios"]
  • Returns TProps["ios"]

  • get android(): TProps["android"]
  • Returns TProps["android"]

Methods

  • Parameters

    • Optional params: Partial<Record<string, any>>

    Returns void

  • Parameters

    Returns void

  • Parameters

    • props: Partial<any>

    Returns void

  • Creates an SvgImage instance from given file path. SvgImage's file should not be in images folder. You can use assets folder.

    Example

    import SvgImage from '@smartface/native/ui/svgimage';
    const mySvgImage = SvgImage.createFromFile("assets://sample.svg");

    Method

    createFromFile

    Returns

    An SvgImage instance.

    Android

    Ios

    Static

    Since

    5.1.1

    Parameters

    • path: string

      SvgImage file path

    Returns null | ISvgImage

  • Parameters

    Returns any

Constructors

  • Parameters

    Returns Svgimage

Generated using TypeDoc