-
Notifications
You must be signed in to change notification settings - Fork 136
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cancel Download function not working #370
Comments
@RonRadtke @pcardon Can you please check it once |
Even I also facing the same issue. Kindly give the solutions for the same @pcardon / @RonRadtke |
Hi, I am also wanted to cancel the ongoing download. I have tried abortController and tried to abort/cancel the download but is also not working. I am also using react-native-blob-util. Please find the below code snippet I have tried. import React, { useState } from 'react'; const DownloadComponent = () => { const requestStoragePermission = async () => { const startDownload = async () => { const cancelDownload = () => { return ( const styles = StyleSheet.create({ export default DownloadComponent; |
Facing the same . Please provide the solution for the same |
@TirumalReddy The confusion seems to stem from the fact that the cancel method exists on the fetch function in the react-native-blob-utils library, but you're trying to chain it to a promise result, which won't work. Here is code snippet from docs:
|
Description:
The cancel() method in react-native-blob-util is not functioning as expected. When attempting to cancel an ongoing download, the download continues instead of being halted.
Steps to Reproduce:
Start a download using react-native-blob-util.
Attempt to cancel the download using the cancel() method.
Observe that the download continues despite the cancellation attempt.
Expected Behavior:
The download should be halted immediately upon calling the cancel() method.
Actual Behavior:
The download continues even after calling the cancel() method.
Environment:
Library Version: 0.18.6
React Native Version: 0.71.7
Platform: Android & IOS
Code Example:
The text was updated successfully, but these errors were encountered: