mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-15 11:01:21 +08:00
Update Readme.md
This commit is contained in:
@ -1,6 +1 @@
|
||||
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');
|
||||
```
|
||||
Contains the ImageSource class, which encapsulates the common abstraction behind a platform specific object (typically a Bitmap) that is used as a source for images.
|
||||
|
Reference in New Issue
Block a user