This repository was archived by the owner on Mar 16, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
how to stop download #256
Labels
Comments
@JuanQ123 , try to separate the statement into lines like this and see if it works download() {
this.task = RNFetchBlob.config(...).fetch()
this.task.progress(...)
this.task.then(...)
}
stop() {
this.task.cancel()
} |
This issue is that the .fetch() is in a different scope and that .cancel() needs to be called on .fetch(). From the docs:
|
this.task.cancel() calls .then() method.How to know the response is stopped in cancel method? |
zombierabbit
pushed a commit
to zombierabbit/react-native-fetch-blob
that referenced
this issue
Feb 12, 2019
Add flow type definitions
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
when the download is starting,how to stop download
The text was updated successfully, but these errors were encountered: