react-native-image-crop-tools
react-native-image-crop-tools copied to clipboard
how to set onImageCrop Response to another state object?
I got cropped response object in onImageCrop but i can't set the object to another state object?
@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.