Open rosentoshev opened 4 years ago
Hey @rosenexpend did you find a solution? I'm getting the same issue as the image is not being cropped.
@rosenexpend @usman64 you seem to use useRef()
try this
customCrop.current.crop()
it actually does have the function, try to addconsole.log()
in your updateImage function, you will see the function is being called.
The customCrop
ref
does not have a crop function and I cannot get the perspective image crop to work. I haveconsole.log
of thecustomCrop
ref and the properties are in the attached screenshot below. There is no crop at all. This is the code of the render and crop function. I would appreciate any assistance to get thereact-native-perspective-image-cropper
to work as intended. My repo can be found at this link: https://github.com/rosenexpend/ScannerImageCropperfunction crop() { customCrop.crop(); }
`return (
); }`