navigationButtonPressed({ buttonId }) {
if (buttonId == "saveBtn") {
this.state.canvas.getBase64('png', false, false, false, (err, result) => {
if (err) {
return console.log(err);
}
this.setState({imageData: result});
});
}
}```
Which result in:
`undefined is not a function (evaluating 'this.state.canvas.getBase64')`
I'm probably doing something wrong in the 'obvious department' but I can't seem to get thus to work...
Header
import SketchCanvas from "@terrylinla/react-native-sketch-canvas";
In render:
In the button handler: