Skip to content

Commit

Permalink
Update README.md (#606)
Browse files Browse the repository at this point in the history
rn-fetch-blob is no longer maintained, so it may be wise to recommend react-native-blob-util

"The project will be continued in this repository. React-Native-Blob-Util is fully compatible with RN-Fetch-Blob and React-Native-Fetch-Blob."

Source: https://www.npmjs.com/package/react-native-blob-util
  • Loading branch information
spencerchubb authored Jun 11, 2024
1 parent 3784eed commit 95882c4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -332,10 +332,10 @@ onStopPlay = async () => {

If you want to get actual uri from the record or play file to actually grab it and upload it to your bucket, just grab the resolved message when using `startPlay` or `startRecord` method like below.

To access the file with more reliability, please use [rn-fetch-blob](https://www.npmjs.com/package/rn-fetch-blob). For example, below.
To access the file with more reliability, please use [react-native-blob-util](https://www.npmjs.com/package/react-native-blob-util). For example, below.

```javascript
const dirs = RNFetchBlob.fs.dirs;
const dirs = ReactNativeBlobUtil.fs.dirs;
const path = Platform.select({
ios: 'hello.m4a',
android: `${this.dirs.CacheDir}/hello.mp3`,
Expand Down

0 comments on commit 95882c4

Please sign in to comment.