Closed dhanangpratama closed 6 years ago
Same error at me
I found the problem.
The documentation say that save function look like this: save(imageType, transparent, folder, filename, includeImage, cropToImageSize)
, but it actually is save(imageType, transparent, folder, filename, includeImage, includeText, cropToImageSize)
. Is missing the includeText parameter from documentation.
So in your case you could change this.canvas.save('jpg', true, '', 'test', true, true)
to this.canvas.save('jpg', true, '', 'test', true, false, true)
and it should work.
Thank you @ggunti, you save my life! ^__^
I got this error when using custom UI. below the code for save image:
<SketchCanvas ref={ref => this.canvas = ref} style={{ flex: 1 }} strokeColor={this.state.strokeColor} strokeWidth={this.state.strokeSize}
and the save method:
`<TouchableOpacity onPress={() => { this.canvas.save('jpg', true, '', 'test', true, true) }} style={styles.btn}>
Any wrong with my code? Thank you! ^__^