Skip to content
This repository was archived by the owner on Mar 16, 2019. It is now read-only.

Commit ec6d167

Browse files
authored
Updates readStream example to use fs package
1 parent 74c57fd commit ec6d167

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -423,7 +423,7 @@ When calling `readStream` method, you have to `open` the stream, and start to re
423423

424424
```js
425425
let data = ''
426-
RNFetchBlob.readStream(
426+
RNFetchBlob.fs.readStream(
427427
// encoding, should be one of `base64`, `utf8`, `ascii`
428428
'base64',
429429
// file path
@@ -450,7 +450,7 @@ RNFetchBlob.readStream(
450450
When use `writeStream`, the stream is also opened immediately, but you have to `write`, and `close` by yourself.
451451

452452
```js
453-
RNFetchBlob.writeStream(
453+
RNFetchBlob.fs.writeStream(
454454
PATH_TO_FILE,
455455
// encoding, should be one of `base64`, `utf8`, `ascii`
456456
'utf8',

0 commit comments

Comments
 (0)