forked from joltup/rn-fetch-blob
-
Notifications
You must be signed in to change notification settings - Fork 161
Closed
Description
Hello, thanks for taking your time to maintain this library.
Somedays, ago, the "download" stopped working. I was able to track down and fix the issue (credits to @srbulovicdusan).
So, here's an image of the error
The fix is,
- go to
ReactNativeBlobUtilFileResp.java
and add a new constructor like this:
public ReactNativeBlobUtilFileResp(ResponseBody body) {
super();
this.originalBody = body;
}
then, in ReactNativeBlobUtilReq.java
around line 607
replace how ReactNativeBlobUtilFileResp
is instanciated.
// remove or comment
ReactNativeBlobUtilFileResp = (ReactNativeBlobUtilFileResp) responseBody;
// use this
ReactNativeBlobUtilFileResp = new ReactNativeBlobUtilFileResp(responseBody);
Important information:
- RN version:
0.64.2
- lib. version:
0.13.18
Note: I was not able to reproduce this issue on a "clean" RN project.
Metadata
Metadata
Assignees
Labels
No labels