Преглед на файлове

Merge pull request #46 from smartt/patch-1

Updates readStream example to use `fs` package
wkh237 преди 8 години
родител
ревизия
9428ff9f13
променени са 1 файла, в които са добавени 2 реда и са изтрити 2 реда
  1. 2
    2
      README.md

+ 2
- 2
README.md Целия файл

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