How to save a draw as a PNG Image?
Opened this issue · 0 comments
luflopes commented
At first, thank you so much for the wonderfull work in this library.
I've searched for a way to use .toImage() method to get and save a PNG file, I failed on try it.
Please, could you explain by an example, how can i use this method?
Below, the code that I used, but it crash the expo app.
const SaveImage = () => {
const image = canvasRef.current?.toImage();
if (image) {
console.log(image)
}
};