diff --git a/src/index.tsx b/src/index.tsx index b00d7edc..92971f55 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -149,6 +149,24 @@ export default class RNSketchCanvas extends React.Component< } } + getBase64( + imageType: string, + transparent: boolean, + includeImage: boolean, + includeText: boolean, + cropToImageSize: boolean, + callback: () => void, + ) { + return this._sketchCanvas.getBase64( + imageType, + transparent, + includeImage, + includeText, + cropToImageSize, + callback, + ); + } + nextStrokeWidth() { if ( (this.state.strokeWidth >= (this.props.maxStrokeWidth || 0) &&