bthurlow / nativescript-imagecropper

A nativescript image cropping plugin.
Other
49 stars 35 forks source link

"No Page Available for Modal" Error on imageCropper.show() #54

Closed kdagnan closed 5 years ago

kdagnan commented 5 years ago

Which platform(s) does your issue occur on?

Please, provide the following version numbers that your issue occurs with:

I am calling the function after I receive an image from NS Camera+.

resizeImage(){ var imageCropper = new this.ImageCropper(); var width = 850; var height = 540; if(!this.horizontal){ width = 540; height = 850; } imageCropper.show(this.originalImage,{width:width,height:height}).then((args) => { if(args.image !== null){ this.imageSource = args.image; } }) .catch(function(e){ console.log(JSON.stringify(e)); alert("Please make sure that your ID is the only thing visible in the image."); this.resizeImage(); }); }

This was working at some point and I haven't touched the code but somewhere along the line it broke and I didn't realize it until recently as I have been working in other parts of my apps. The only things that would've changed are versions (TNS, Angular, iOS Platform, other plugins).

shiv19 commented 5 years ago

Can you please pin your image cropper version to 1.0.5

1.0.6 doesn't work on iOS I'm going to unpublish it today

kdagnan commented 5 years ago

@shiv19 works on 1.0.5, thank you!