Skip to content
This repository was archived by the owner on Mar 16, 2019. It is now read-only.
This repository was archived by the owner on Mar 16, 2019. It is now read-only.

cancel download without executing .then() #710

@mojtaba-hajishah

Description

@mojtaba-hajishah

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions