cancel download without executing .then()
Opened this issue · 0 comments
mojtaba-hajishah commented
I've been trying to find a way to cancel download requests.
found this gist and it works.
calling cancel() will stop the request.
but after calling cancel(), then() always gets executed.
the result of calling cancel() in this gist is : [ DOWNLOAD IS COMPLETED ]
desired result : [ DOWNLOAD IS CANCELLED ]
react-native-fetch-blob: v 0.10.8
react-native: v 0.55.3