mirror of
https://github.com/status-im/react-native-image-resizer.git
synced 2025-01-12 07:34:30 +00:00
544dd9d473
previously Android implementation worked differently and to the returned absolute path a 'file:' is prepended. This different behaviour may causes issues/bugs when handling the response from an unified code base point of view and also the returned uri on the Android native code is not generated properly using native functions to do so. This patch fixes this incoherence, but also extends the returned value to add: absolute path, file name, file size and the uri. Refactored Android code to make it easier to read and more robust to case sensitive file names.