react-avatar-editor
react-avatar-editor copied to clipboard
feature request: Provide a way to get the scaled image without refs
Especially in a more dynamic context where there may be more than one <AvatarEditor />
in a component it'd be very nice to be able to handle an event, or pull the scaled image data out of the existing onImageChange
event instead of messing with React refs.
Maybe something like this?
onImageChange={({ scaledImage }) => {
console.log("onImageChange", {
scaledImage
});
}}