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:
Hagen Hübel 2017-12-20 23:23:54 +01:00
commit 43438bfa52

View File

@ -59,12 +59,14 @@ type DownloadFileOptions = {
fromUrl: string; // URL to download file from fromUrl: string; // URL to download file from
toFile: string; // Local filesystem path to save the file to toFile: string; // Local filesystem path to save the file to
headers?: Headers; // An object of headers to be passed to the server 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; progressDivider?: number;
readTimeout?: number;
connectionTimeout?: number;
begin?: (res: DownloadBeginCallbackResult) => void; begin?: (res: DownloadBeginCallbackResult) => void;
progress?: (res: DownloadProgressCallbackResult) => 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 = { type DownloadBeginCallbackResult = {