Important caveats and usage notes
masterKeep the following behaviors in mind when using react-native-blob-util:
- URL Encoding: The library does not automatically urlencode unicode characters in URLs.
- Blob Lifecycle: If you create a
Blobfrom an existing file, that file WILL BE REMOVED if you callcloseon the blob. - XMLHttpRequest replacement: Replacing
window.XMLHttpRequest(e.g., to support Firebase SDK) will also affect the officialfetchimplementation. - Progress Event Overhead: If file stream or upload/download progress events slow down your app, upgrade to
0.9.6+and use additional arguments to limit event frequency. - File Paths: When passing a file path to the library, you must remove the
file://prefix.