Browse Source

Merge remote-tracking branch 'origin/master' into 0.10.2

Ben Hsieh 8 years ago
parent
commit
d702708d50
1 changed files with 6 additions and 6 deletions
  1. 6
    6
      README.md

+ 6
- 6
README.md View File

204
     fileCache : true,
204
     fileCache : true,
205
   })
205
   })
206
   .fetch('GET', 'http://www.example.com/file/example.zip', {
206
   .fetch('GET', 'http://www.example.com/file/example.zip', {
207
-    some headers ..
207
+    //some headers ..
208
   })
208
   })
209
   .then((res) => {
209
   .then((res) => {
210
     // the temp file path
210
     // the temp file path
224
     appendExt : 'png'
224
     appendExt : 'png'
225
   })
225
   })
226
   .fetch('GET', 'http://www.example.com/file/example.zip', {
226
   .fetch('GET', 'http://www.example.com/file/example.zip', {
227
-    some headers ..
227
+    //some headers ..
228
   })
228
   })
229
   .then((res) => {
229
   .then((res) => {
230
     // the temp file path with file extension `png`
230
     // the temp file path with file extension `png`
387
 
387
 
388
 ```js
388
 ```js
389
   RNFetchBlob.fetch('POST', 'http://www.example.com/upload', {
389
   RNFetchBlob.fetch('POST', 'http://www.example.com/upload', {
390
-      ... some headers,
390
+      //... some headers,
391
       'Content-Type' : 'octet-stream'
391
       'Content-Type' : 'octet-stream'
392
     }, base64DataString)
392
     }, base64DataString)
393
     // listen to upload progress event
393
     // listen to upload progress event
411
 
411
 
412
 ```js
412
 ```js
413
   RNFetchBlob.fetch('POST', 'http://www.example.com/upload', {
413
   RNFetchBlob.fetch('POST', 'http://www.example.com/upload', {
414
-      ... some headers,
414
+      //... some headers,
415
       'Content-Type' : 'octet-stream'
415
       'Content-Type' : 'octet-stream'
416
     }, base64DataString)
416
     }, base64DataString)
417
     // listen to upload progress event, emit every 250ms
417
     // listen to upload progress event, emit every 250ms
491
 ```js
491
 ```js
492
 RNFetchBlob
492
 RNFetchBlob
493
     .config({
493
     .config({
494
-        addAdnroidDownloads : {
494
+        addAndroidDownloads : {
495
             useDownloadManager : true, // <-- this is the only thing required
495
             useDownloadManager : true, // <-- this is the only thing required
496
             // Optional, override notification setting (default to true)
496
             // Optional, override notification setting (default to true)
497
             notification : false,
497
             notification : false,
530
     description : 'An image file.',
530
     description : 'An image file.',
531
     mime : 'image/png',
531
     mime : 'image/png',
532
     // Make the file scannable  by media scanner
532
     // Make the file scannable  by media scanner
533
-    meidaScannable : true,
533
+    mediaScannable : true,
534
   }
534
   }
535
 })
535
 })
536
 .fetch('GET', 'http://example.com/image1.png')
536
 .fetch('GET', 'http://example.com/image1.png')