Bläddra i källkod

Updates readStream example to use `fs` package

smartt 8 år sedan
förälder
incheckning
ec6d167873
1 ändrade filer med 2 tillägg och 2 borttagningar
  1. 2
    2
      README.md

+ 2
- 2
README.md Visa fil

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