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

Cannot read property 'cropImage' of undefined #61

Closed
dungnguyentri3110 opened this issue Mar 12, 2020 · 0 comments
Closed

Cannot read property 'cropImage' of undefined #61

dungnguyentri3110 opened this issue Mar 12, 2020 · 0 comments

Comments

@dungnguyentri3110
Copy link

Question

Hello, i just install ImageEditor and use it to crop my image. But when i do this action, have warning like this "Cannot read property 'cropImage' of undefined".
This is my code
const cropData = {
offset:{x: 0, y: 0},
size: {width: image.width, height: image.height},
displaySize: {width: image.width, height: image.height},
resizeMode: 'contain'
}

  ImageEditor.cropImage(image.uri, cropData).then(url =>{
    console.log(`LIST ITEM SELECT`, url);
  }).catch(error =>{
    console.log(`ERROR`, error);
  })
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

1 participant