hhunaid / react-native-image-crop-tools

Native-ish Image Crop Tools for react native
171 stars 58 forks source link

saveImage() function causes java exception #2

Closed onur-ozkan closed 4 years ago

onur-ozkan commented 4 years ago

Hey there, whatever value(between 1 and 100) I give the saveImage() function, I get the java exception 'java.lang.Double cannot be cast to java.lang.Boolean' but in here when I replace the line with this val quality = 100 problem gets solved. I dont know much about kotlin so I decided to let you know that problem.

hhunaid commented 4 years ago

There was a breaking change in the most recent version where saveImage now takes 2 parameters. 1st is a boolean which tells if you want to keep the transparency i.e. generate a png or a jpg. 2nd argument takes the quality. I have updated the readme to reflect this

onur-ozkan commented 4 years ago

Ah okay then, I didnt see it sorry. Thanks for quick response.