Browse Source

Merge pull request #46 from smartt/patch-1

Updates readStream example to use `fs` package
wkh237 9 years ago
parent
commit
9428ff9f13
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      README.md

+ 2
- 2
README.md View File

423
 
423
 
424
 ```js
424
 ```js
425
 let data = ''
425
 let data = ''
426
-RNFetchBlob.readStream(
426
+RNFetchBlob.fs.readStream(
427
     // encoding, should be one of `base64`, `utf8`, `ascii`
427
     // encoding, should be one of `base64`, `utf8`, `ascii`
428
     'base64',
428
     'base64',
429
     // file path
429
     // file path
450
 When use `writeStream`, the stream is also opened immediately, but you have to `write`, and `close` by yourself.
450
 When use `writeStream`, the stream is also opened immediately, but you have to `write`, and `close` by yourself.
451
 
451
 
452
 ```js
452
 ```js
453
-RNFetchBlob.writeStream(
453
+RNFetchBlob.fs.writeStream(
454
     PATH_TO_FILE,
454
     PATH_TO_FILE,
455
     // encoding, should be one of `base64`, `utf8`, `ascii`
455
     // encoding, should be one of `base64`, `utf8`, `ascii`
456
     'utf8',
456
     'utf8',