Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to set onImageCrop Response to another state object? #65

Open
SriSamVictor opened this issue Feb 25, 2022 · 1 comment
Open

how to set onImageCrop Response to another state object? #65

SriSamVictor opened this issue Feb 25, 2022 · 1 comment

Comments

@SriSamVictor
Copy link

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

@shahanshah87
Copy link

shahanshah87 commented Feb 25, 2022

@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants