Bladeren bron

Updates readStream example to use `fs` package

smartt 9 jaren geleden
bovenliggende
commit
ec6d167873
1 gewijzigde bestanden met toevoegingen van 2 en 2 verwijderingen
  1. 2
    2
      README.md

+ 2
- 2
README.md Bestand weergeven

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