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

Crop Function is not working in the react hooks #94

Open
Ayubbabaxelits opened this issue Jun 9, 2021 · 0 comments
Open

Crop Function is not working in the react hooks #94

Ayubbabaxelits opened this issue Jun 9, 2021 · 0 comments

Comments

@Ayubbabaxelits
Copy link

Hi,

I am trying to use the library with the react hooks please find the code but its not working as expected

<ImageCrop ref={imageCropperRef} image={selectedImg} cropHeight={CROP_AREA_HEIGHT} cropWidth={CROP_AREA_WIDTH} zoom={20} maxZoom={80} minZoom={20} panToMove={true} pinchToZoom={true} />

        When clicked the below code I am trying to run here in the below I cant able to get the crop function
        

  `imageCropperRef.current`
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