I am saving my signature like this
const data = signatureRef.current
.toDataURL('image/png')
and loads that url while repons the canvas to edit.
I am saving my signature like this
const data = signatureRef.current
.toDataURL('image/png')
and loads that url while repons the canvas to edit.
I was facing the same issue and solved by using .toData() function. This function returns points array and on re-opening the signature canvas, I loads this array and that worked for me.
const pointArray = signatureRef.current.toData();
And load this as you were loading previously.