Skip to content

Problem with canceling the request #140

Open
@Spisaczek

Description

@Spisaczek

Specs:
"react-native": "0.55.4",
"rn-fetch-blob": "0.10.12",

Hello guys :)

So I have a problem with canceling request. I'm trying to download some huge apk file (more than 400 MB) and I want to give user ability to cancel the download process.

So I'm creating the request in this way:

let request = RNFetchBlob.config({
             path: apkPath,
             fileCache: true
        }).fetch('GET', app.apkDownloadUrl)
           .then((res) => {[...]});

Then, when I call:

request.cancel();

There is error that says that "cancel" is not a function.
What I'm doing wrong? :)

BTW: Beside this issue, great library!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions