You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I had implemented the nativescript-imagecropper with the default camera and tried to implement it with nativescript-rad-imagepicker.
From what I saw in the documentation, the nativescript-rad-imagepicker returns an imageSource, which is what is requested by nativescript-imagecropper, the interface for the cut appears, but upon confirming the image is not returned.
I have not yet been able to run a test to see if it works on iOS, I'll do it soon.
Implementation using the native camera
foto() {
takePicture({ width: 300, height: 300, keepAspectRatio: true, cameraFacing: "front" })
.then((imageAsset) => {
let source = new ImageSource();
source.fromAsset(imageAsset).then((source) => {
// now you have the image source
// pass it to the cropper
this.show(source);
});
}).catch((err) => {
console.log("Error -> " + err.message);
});
}
Implementation using the nativescript-rad-imagepicker
Hello,
I had implemented the nativescript-imagecropper with the default camera and tried to implement it with nativescript-rad-imagepicker.
From what I saw in the documentation, the nativescript-rad-imagepicker returns an imageSource, which is what is requested by nativescript-imagecropper, the interface for the cut appears, but upon confirming the image is not returned.
I have not yet been able to run a test to see if it works on iOS, I'll do it soon.
Implementation using the native camera
Implementation using the nativescript-rad-imagepicker
show function
package.json
The text was updated successfully, but these errors were encountered: