mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
Image src and imageSource properties defined
This commit is contained in:
@@ -61,6 +61,6 @@ export function setPicture(args: observable.EventData) {
|
||||
var img = parent.getViewById<image.Image>("cameraImage");
|
||||
|
||||
camera.takePicture().then(r=> {
|
||||
img.source = r;
|
||||
img.imageSource = r;
|
||||
}).catch(e => dialogs.alert("ERROR: " + e));
|
||||
}
|
||||
Reference in New Issue
Block a user