react-image-magnify icon indicating copy to clipboard operation
react-image-magnify copied to clipboard

Example with passing in a custom Image component

Open nikos-manolas opened this issue 3 years ago • 1 comments

Trying to pass in the Nextjs Image component as the imageComponent. But getting a warning like this and magnify does not work.

Warning: Function components cannot be given refs. Attempts to access this ref will fail. Did you mean to use React.forwardRef()?

Check the render method of CursorPosition. at ZoroImageComp at div at CursorPosition (webpack-internal:///./node_modules/@blacklab/react-image-magnify/dist/src/CursorPosition.js:87:13) at ReactImageMagnify (webpack-internal:///./node_modules/@blacklab/react-image-magnify/dist/src/ReactImageMagnify.js:34:13) at div

Any help or example would be much appreciated.

nikos-manolas avatar Jun 22 '22 10:06 nikos-manolas

Hi @nikos-manolas I'll look into this. Do you have a sandbox you can share or a repo I can clone down to test?

gooftroop avatar Aug 16 '22 14:08 gooftroop