Skip to content

Commit 8cce29c

Browse files
committed
Added Doc for connectionTimeout and readTimeout for downloadFile
1 parent aa542c8 commit 8cce29c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ Native filesystem access for react-native
77
- React-Native 0.40 is minimum required for compiling on iOS (otherwise install an older release, see below)
88
- Access to iOS-based "assets-library" is now supported with `copyAssetsFileIOS`
99
- `readDir` will return now creation- and modification-time of files as with `stat()` (thanks @Ignigena)
10+
- optional connectionTimeout and readTimeout-Settings on `downloadFile` for Android (thanks @drunksaint)
1011

1112
## Breaking change in v2.0
1213

@@ -449,6 +450,8 @@ type DownloadFileOptions = {
449450
progressDivider?: number;
450451
begin?: (res: DownloadBeginCallbackResult) => void;
451452
progress?: (res: DownloadProgressCallbackResult) => void;
453+
connectionTimeout?: number // only supported on Android yet
454+
readTimeout?: number // only supported on Android yet
452455
};
453456
```
454457
```

0 commit comments

Comments
 (0)