A React Native library (v5.3.3) that manages a queue of file downloads, persisting state across app restarts and retrying failed downloads automatically. Works in the background even after the app is killed (iOS). Builds on three peer dependencies: @kesha-antonov/react-native-background-downloader for background downloading, react-native-fs for file system operations, and @react-native-async-storage/async-storage for queue persistence. The primary differentiator is automatic resume and reconciliation: it tracks a set of URLs, downloads them sequentially, and maps remote URLs to local cached paths. Supports wifi-only downloads and lazy deletion. Ships TypeScript definitions. Release cadence is irregular.
npm install react-native-background-downloader-queueNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Create a download queue, initialize it, add a URL to download, and retrieve the local or remote path for use.
Call await downloader.init() immediately after constructing DownloadQueue.
Follow the '@kesha-antonov/react-native-background-downloader' iOS setup to add BGTaskSchedulerPermittedIdentifiers and handle completion handler in AppDelegate.m.
Ensure your code expects a string from getAvailableUrl (never null).
Assign unique 'domain' strings when constructing multiple DownloadQueue instances.
Use separate DownloadQueue instances or the internal logic for parallel if needed (not supported by default).
Ensure all peer dependencies are installed and the URL is accessible. Check for network permissions in AndroidManifest/Info.plist.
Use default import: import DownloadQueue from 'react-native-background-downloader-queue'
Run react-native link and ensure auto-linking is enabled. Check for duplicate native module registrations.
Install @react-native-async-storage/async-storage and run react-native link or pod install.