mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
BCL: updated location and image APIs
This commit is contained in:
@@ -32,7 +32,7 @@ export class http {
|
||||
var d = promises.defer<image_module.Image>();
|
||||
http.get(url, r => {
|
||||
var image = new image_module.Image();
|
||||
image.loadFromBitmap(r);
|
||||
image.loadFromNativeBitmap(r);
|
||||
d.resolve(image);
|
||||
}, e => d.reject(e));
|
||||
return d.promise();
|
||||
|
||||
Reference in New Issue
Block a user