I am using this with NextJS, and it will work fine on desktop, but on Chrome on my iPhone it will not download.
Instead, I get a 'document' without a title. When I try to open it, it's not an image.
My download function is:
onClick={async () => {
const { exportComponentAsJPEG } = await import(
"react-component-export-image"
);
exportComponentAsJPEG(basicDefaultRef);
}}