Abstract
Protected
Optional
Static
Creates an SvgImage instance from given file path. SvgImage's file should not be in images folder. You can use assets folder.
import SvgImage from '@smartface/native/ui/svgimage'; const mySvgImage = SvgImage.createFromFile("assets://sample.svg");
createFromFile
An SvgImage instance.
5.1.1
SvgImage file path
Generated using TypeDoc
Creates an SvgImage instance from given file path. SvgImage's file should not be in images folder. You can use assets folder.
Example
Method
createFromFile
Returns
An SvgImage instance.
Android
Ios
Static
Since
5.1.1