Skip to content

Commit 7ba59a9

Browse files
authored
feat: expose "getBase64()" method (#25)
1 parent 07c2ec3 commit 7ba59a9

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

src/index.tsx

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,24 @@ export default class RNSketchCanvas extends React.Component<
149149
}
150150
}
151151

152+
getBase64(
153+
imageType: string,
154+
transparent: boolean,
155+
includeImage: boolean,
156+
includeText: boolean,
157+
cropToImageSize: boolean,
158+
callback: () => void,
159+
) {
160+
return this._sketchCanvas.getBase64(
161+
imageType,
162+
transparent,
163+
includeImage,
164+
includeText,
165+
cropToImageSize,
166+
callback,
167+
);
168+
}
169+
152170
nextStrokeWidth() {
153171
if (
154172
(this.state.strokeWidth >= (this.props.maxStrokeWidth || 0) &&

0 commit comments

Comments
 (0)