Skip to content
This repository was archived by the owner on Mar 16, 2019. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ RNFetchBlob
fileCache : true,
})
.fetch('GET', 'http://www.example.com/file/example.zip', {
some headers ..
//some headers ..
})
.then((res) => {
// the temp file path
Expand All @@ -224,7 +224,7 @@ RNFetchBlob
appendExt : 'png'
})
.fetch('GET', 'http://www.example.com/file/example.zip', {
some headers ..
//some headers ..
})
.then((res) => {
// the temp file path with file extension `png`
Expand Down Expand Up @@ -387,7 +387,7 @@ In `version >= 0.4.2` it is possible to know the upload/download progress. After

```js
RNFetchBlob.fetch('POST', 'http://www.example.com/upload', {
... some headers,
//... some headers,
'Content-Type' : 'octet-stream'
}, base64DataString)
// listen to upload progress event
Expand All @@ -411,7 +411,7 @@ In `0.9.6`, you can specify an object as first argument which contains `count` a

```js
RNFetchBlob.fetch('POST', 'http://www.example.com/upload', {
... some headers,
//... some headers,
'Content-Type' : 'octet-stream'
}, base64DataString)
// listen to upload progress event, emit every 250ms
Expand Down Expand Up @@ -491,7 +491,7 @@ When using DownloadManager, `fileCache` and `path` properties in `config` will n
```js
RNFetchBlob
.config({
addAdnroidDownloads : {
addAndroidDownloads : {
useDownloadManager : true, // <-- this is the only thing required
// Optional, override notification setting (default to true)
notification : false,
Expand Down Expand Up @@ -530,7 +530,7 @@ RNFetchBlob.config({
description : 'An image file.',
mime : 'image/png',
// Make the file scannable by media scanner
meidaScannable : true,
mediaScannable : true,
}
})
.fetch('GET', 'http://example.com/image1.png')
Expand Down
1 change: 1 addition & 0 deletions src/android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,6 @@ android {

dependencies {
compile 'com.facebook.react:react-native:+'
compile 'com.squareup.okhttp3:okhttp:3.6.0'
//{RNFetchBlob_PRE_0.28_DEPDENDENCY}
}