-
Notifications
You must be signed in to change notification settings - Fork 647
Open
Description
Hi. I'm using the latest version. We're implementing this on a project that uses AI to generate an image based on user selected prompt. The generated image is then assigned to element. The whole thing that we are trying to convert into an image is :
{username]
on top ofWorks great on Android but the problem as usual lies with iOS. We realized a little late into it that when downloading or sharing the image the elements are blank except the
. for example, this is the download button function. Perhaps i am not implementing it correctly.
await (document as any).fonts.ready;
const dataUrl = await htmlToImage.toPng(elementRef.current, {cacheBust: true,});
const link = document.createElement("a");
link.href = dataUrl;
link.download = "capture.png";
link.click();
Metadata
Metadata
Assignees
Labels
No labels