浏览代码

Updates readStream example to use `fs` package

smartt 9 年前
父节点
当前提交
ec6d167873
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2
    2
      README.md

+ 2
- 2
README.md 查看文件

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',