From 8a94e23bc1405d5416ba5f3c5156297e23752731 Mon Sep 17 00:00:00 2001 From: AlexanderNuar <101461783+AlexanderNuar@users.noreply.github.com> Date: Tue, 2 Jan 2024 20:32:32 +0300 Subject: [PATCH] mini readme fix --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 312affd..ea9a67a 100644 --- a/README.md +++ b/README.md @@ -100,14 +100,14 @@ Failing to add this code will result in canceled background downloads. If Xcode ```javascript import { Platform } from 'react-native' -import { download, completeHandler } from '@kesha-antonov/react-native-background-downloader' +import { download, completeHandler, directories } from '@kesha-antonov/react-native-background-downloader' const jobId = 'file123' let task = download({ id: jobId, url: 'https://link-to-very.large/file.zip', - destination: `${RNBackgroundDownloader.directories.documents}/file.zip`, + destination: `${directories.documents}/file.zip`, metadata: {} }).begin(({ expectedBytes, headers }) => { console.log(`Going to download ${expectedBytes} bytes!`)