How to manage Compress & Resize Images with Ionic-React using "react-image-file-resizer"

@ptmkenny I followed these tutorials in these links
https://dev.to/wchr/compress-images-in-react-react-image-file-resize-4oni & https://www.npmjs.com/package/react-image-file-resizer?activeTab=readme => to use the package react-image-file-resizer, but the problem in the method resizeCompressAndReturnNewURL() is in this part

(uri) => {
       console.log(uri);
       // You upload logic goes here
     }

because the imageFileResizer method return a void in the promise, and I want the URL (String) and at the same time I want to get this new URL of the converted image into the <IonImg src={X} /> component… and in my case in the IonImg component show me a problem that the returned result is a Promise<Void> and it should be an URL (String) without any Promise.

Thanks.