I am using react-native-signature-canvas which returns the signature as a base64 image string. I want to send it to the API and before that, I want to convert it to the data URL. Can anyone help me? Also, I don't want to store the file/image to the local storage..just wanna convert it to the DataUrl and send it to the API.
Try below code to convert base64ImageString to DataUrl
const DataUrl = `data:image/png;base64,${base64ImageString}`;