Open
Description
Android v7.0.0
Real device - LG G5
nativescript - 3.3.0
tns-core-modules - 3.3.0
tns-android - 3.3.0
nativescript-camera - 3.2.1
I request the permissions at the end of the ngOnInit(), i then click a button to call takeImage()
which is as follows
takeImage() {
cameraModule.takePicture({
width: 100,
height: 150,
keepAspectRatio: true,
saveToGallery: false
}).then(imageAsset => {
imageSource.fromAsset(imageAsset)
.then(res => {
this.displayPicture(res);
}).then(
() => {
//Do code to display new elements
})
});
}
Currently only tested on android but not on ios