Update Readme.md

This commit is contained in:
Vladimir Enchev
2016-05-19 09:57:21 +03:00
parent ed8557f3eb
commit b43fa0d5e6

View File

@ -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.