Fixed breaking change in camera for android.

This commit is contained in:
Nedyalko Nikolov
2016-05-14 11:15:29 +03:00
parent a5e2d46553
commit cf3cd35a4f
5 changed files with 101 additions and 92 deletions

View File

@@ -2,7 +2,7 @@
```
var camera = require("camera");
camera.takePicture({"cameraPosition": camera.CameraPosition.BACK, "flashMode": camera.FlashMode.ON}).then(function (image) {
camera.takePicture({"width": 300, "height": 300, "keepAspectRatio": true, "saveToGallery": true}).then(function (image) {
console.log('pic taken - width: ' + image.width + ", height: " + image.height);
}).fail(function (error) {
console.log('pic canceled');