mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-16 11:42:04 +08:00

- Use relative imports in place of most of our absolute ones. - Add "private" ambient modules for modules that we need to import using an absolute path (e.g. when app/.../test-something.ts needs to import ui/styling/style-scope)
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');