terrylinla / react-native-sketch-canvas

A React Native component for drawing by touching on both iOS and Android.
MIT License
695 stars 453 forks source link

canvas is not getting saved in SketchCanvas component #172

Closed devendra-learngram-ai closed 4 years ago

devendra-learngram-ai commented 4 years ago

I'm using SketchCanvas component for custom ui. my SketchCanvas looks like this: <SketchCanvas ref={(ref) => (this.canvas = ref)} style={{ flex: 1 }} />

I'm trying to save the canvas by doing this.canvas.save("png", true, "folderName", "filename", false, false, false );. But when I check for the image, It is not there. What could be the issue here ?

anjusr commented 4 years ago

Did you get any solution?

YASH6004 commented 2 years ago

@devendra-learngram-ai what's the solution