Skip to content

Commit

Permalink
feat: expose "getBase64()" method (#25)
Browse files Browse the repository at this point in the history
  • Loading branch information
ian-wd authored Jun 15, 2023
1 parent 07c2ec3 commit 7ba59a9
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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) &&
Expand Down

0 comments on commit 7ba59a9

Please sign in to comment.