mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
Fixed breaking change in camera for android.
This commit is contained in:
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user