mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-17 12:57:42 +08:00

Use the tns_safeDecodeImageNamedCompletion from the widgets framework Add loadMode on Image with sync and async options for local images
The way we get local path here is different for now. Maybe we should get it from FS module in the future samples. Sample code Android:
var ImageSource = require("image-source").ImageSource;
var source = ImageSource.imageFromResource('foxie');