We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hi When trying to use const imageData = await invoice.render(); it's return Error: You need to specify a canvas element
The text was updated successfully, but these errors were encountered:
Hi @A7medSabry,
Where are you running the code? Browser or server? Please also provide full code snippet.
Sorry, something went wrong.
Code run in debug mode on mobile app with metro bundler React Naitve Code :
Code Stop in Line 130 @ihadabs Error: You need to specify a canvas element
Hey there @A7medSabry,
The render method uses the toDataURL from node-qrcode. If its throwing an error then you could open an issure in the package repo 🙌.
toDataURL
Not sure about React Native but you could still render the invoice.toBase64() using other available packages.
invoice.toBase64()
No branches or pull requests
Hi
When trying to use
const imageData = await invoice.render();
it's return Error: You need to specify a canvas element
The text was updated successfully, but these errors were encountered: