Merge pull request #2822 from NativeScript/nnikolov/CameraRefactoring

Refactored image loading from camera.
This commit is contained in:
Nedyalko Nikolov
2016-10-03 17:54:07 +03:00
committed by GitHub
15 changed files with 297 additions and 26 deletions

View File

@@ -61,6 +61,6 @@ export function setPicture(args: observable.EventData) {
var img = parent.getViewById<image.Image>("cameraImage");
camera.takePicture().then(r=> {
img.imageSource = r;
img.src = r;
}).catch(e => dialogs.alert("ERROR: " + e));
}