Questions tagged [rn-fetch-blob]

99 questions
0
votes
1 answer

React Native: download PDF to local storage (ios)

I have the following function to download a PDF from my server: const downloadInvoice = (invoiceId) => { const path = `${RNFetchBlob.fs.dirs.DocumentDir}/${invoiceId}.pdf`; RNFetchBlob.config({ fileCache: true, path, …
Sam Leurs
  • 1,592
  • 1
  • 19
  • 48
0
votes
1 answer

react native rn-fetch-blob cannot read storage of android 10

`const dirs_read = RNFetchBlob.fs.dirs.SDCardDir + '/Whatsapp/Media/.Statuses';` The above code is working properly on android 9 and lower but, can not read the status of android 10.
0
votes
0 answers

The installation of rn-fetch-blob fails to build my app

I am using React-native 0.62.2. Everything was working fine until I installed rn-fetch-blob. I tried to build my app by running react-native run-android but it failed to build. Instead I got the following error: > Task :app:processDebugResources…
Efosa
  • 137
  • 4
  • 14
0
votes
1 answer

Rn-fetch-blob on iOS upload image with RNFetchBlob

I try upload image on server with this code: updateAvatar(token, photo) { return postImage( "http://lk.skilla.ru/myapi/updateAvatar", [ { name: "avatar", filename: "avatar.jpg", type:…
0
votes
0 answers

How to install rn-fetch-blob

I'm using RN 0.61.5 and did an installation using npm of rn-fetch-blob latest version. Their documentation says add pods if using Cocoapods which I did, would I need to do linking for the package? Since it is RN 0.6+, I know it is not required to…
Ivditi Gabeskiria
  • 302
  • 1
  • 2
  • 9
0
votes
0 answers

Write file RNFetchBlob overide files

I'm using rnFetch blob to create files like: RNFetchBlob.fs.writeFile(uri, base64, "base64") It works but sometimes I need to override that image. As the doc says: writeFile API replaces content in the file, if you're going to append data to…
0
votes
1 answer

photo download in react native iOS is too slow

I need to download 1000s of photos in react native for offline use. I use RNFetchBlob for android and RNFS for iOS to download all photos. for android RNFetchBlob.config({ path: `${Path.path}${fileName}.${type}`, …
RkKhanpuriya
  • 164
  • 1
  • 13
0
votes
2 answers

How to read JSON file with React-Native-fs

I have a asset.json file with content, and need to read it within an react-native app. I already figured that it must be manually copied to the native implementation and I can verify the file is there (and readable: -rw-r--r--). Since its there and…
Macilias
  • 3,279
  • 2
  • 31
  • 43
-1
votes
1 answer

React Native - Cannot read property 'DocumentDir' of null

Why my rn-fetch-blob package error? "Cannot read property 'DocumentDir' of null" I just want to convert my blob video to fetch a localURL Anyone can help me plz!! i try to rebuild or install react-native-blob-util still error. but…
1 2 3 4 5 6
7