mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
Now they are required by module name e.g require("file-system") instead of by file name.
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');