mirror of
https://github.com/status-im/react-native-fs.git
synced 2025-02-28 15:00:29 +00:00
Merge branch 'master' of github.com:itinance/react-native-fs
* 'master' of github.com:itinance/react-native-fs: Fix Flow error for DownloadFileOptions type
This commit is contained in:
commit
43438bfa52
@ -59,12 +59,14 @@ type DownloadFileOptions = {
|
||||
fromUrl: string; // URL to download file from
|
||||
toFile: string; // Local filesystem path to save the file to
|
||||
headers?: Headers; // An object of headers to be passed to the server
|
||||
background?: boolean; // iOS only
|
||||
background?: boolean; // Continue the download in the background after the app terminates (iOS only)
|
||||
discretionary?: boolean; // Allow the OS to control the timing and speed of the download to improve perceived performance (iOS only)
|
||||
progressDivider?: number;
|
||||
readTimeout?: number;
|
||||
connectionTimeout?: number;
|
||||
begin?: (res: DownloadBeginCallbackResult) => void;
|
||||
progress?: (res: DownloadProgressCallbackResult) => void;
|
||||
resumable?: () => void; // only supported on iOS yet
|
||||
connectionTimeout?: number; // only supported on Android yet
|
||||
readTimeout?: number; // supported on Android and iOS
|
||||
};
|
||||
|
||||
type DownloadBeginCallbackResult = {
|
||||
|
Loading…
x
Reference in New Issue
Block a user