react-image-magnify
react-image-magnify copied to clipboard
Example with passing in a custom Image component
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.
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?