react-native-multiple-image-picker
react-native-multiple-image-picker copied to clipboard
fix: check if file path already has file prefix in it
Fix duplicate "file://" prefix in image picker result path
The URL's absoluteString from both iOS Simulator and physical devices already contains the "file://" prefix. Previously, we were unconditionally adding another prefix, resulting in malformed paths like "file://file://...".
Added a check to only prepend "file://" if it's not already present in the path. While this scenario hasn't been observed in testing, this change makes the code more robust by handling edge cases where the prefix might be missing.
@baronha could you please take a look at this one
This PR should be merged