react-native-image-crop-tools icon indicating copy to clipboard operation
react-native-image-crop-tools copied to clipboard

how to set onImageCrop Response to another state object?

Open SriSamVictor opened this issue 2 years ago • 1 comments

I got cropped response object in onImageCrop but i can't set the object to another state object?

SriSamVictor avatar Feb 25 '22 07:02 SriSamVictor

@SriSamVictor are you getting cropped response object in Android because I am getting response in Android, its working fine in iOS.

If you are getting response then you can do something like this:- onImageCrop={(res) => this.setState({uri:res.uri,width:res.width,height:res.height}} or you can use callback function if you are using Cropper as a child component.

shahanshah87 avatar Feb 25 '22 11:02 shahanshah87