Questions tagged [rn-fetch-blob]
99 questions
3
votes
0 answers
RNFetchBlob download not working on android 9
My code to download the file as below
RNFetchBlob.config({
path : path,
background: true,
cacheable:false,
timeout: 1000 * 60 * 15 //15 minutes
})
.fetch('GET', forFile.url, {//some headers ..})
.then((res) => {
Realm.open({
…

Sheshnath
- 3,293
- 1
- 32
- 60
2
votes
1 answer
How to open File Manager and pick a directory before downloading file in React Native
I'm developing a React Native app for Android platform and I have to download file by using rn-fetch-blob library.
I find out some apps can open File Manager of Android and choose a directory when user download. So how can I do that?
My app download…

Rino
- 53
- 7
2
votes
0 answers
how to open files from android download manager's notification in react native android?
I am trying to open pdf files which gets downloaded through the android download manager in react native .
I have used rn-fetch-blob for this and I think am unable to set the path in the download manager...
here is code for it ...
tried opening…

fridayDev
- 31
- 2
2
votes
1 answer
RNFetchBlob - Not able to get API data in generated image file
Hello guys I designed certificate Image module on my website when I click on Download I able to generate a certificate image file with all data.
but right now, I designing same for React Native using RNFetchBlob from 'rn-fetch-blob' when i calling…

Jason0011
- 444
- 1
- 6
- 19
2
votes
0 answers
TypeError: Cannot read properties of undefined (reading 'DocumentDir') in rn-fetch-blob
I have just installed this library but when I am importing it into my project I have an error
TypeError: Cannot read properties of undefined (reading 'DocumentDir')
windows - expo - android

sasame
- 21
- 4
2
votes
0 answers
React-native-fetch-blob GET request error
I am replacing axios to rn-fetch-blob in my react-native project. In the request I ping my server with credentials and I expect a response.
The old request with axios is as follows and works perfectly:
export const postWorkspace =
(newWorkspace:…

Bl4ckMED
- 104
- 1
- 1
- 6
2
votes
1 answer
How to get a stream while a video is being recorded?
I'd like to upload data chunk to server while recording a video(not after recording).
I tried to go with react-native-camera or react-native-vision-camera.
but as far as I know, recordAsync method only resolves the final version of recorded…

Otani Shuzo
- 1,118
- 1
- 11
- 22
2
votes
0 answers
React native storing blobs for offline usage (with a maintained library)
I want my RN App to be able to use without an internet connection.
From an API I receive images with the following type:
interface ApiImage {
url: string;
updatedAt: Date;
}
So my goal is to download the image and store it on the device to make…

Yannick Schröder
- 349
- 4
- 14
2
votes
3 answers
Unsupported path storage/emulated/0/test
Hi I am working on a mobile application (react native 0.60.4) where I am downloading file using rn-fetch-blob to a custom path
storage/emulated/0/test
earlier it was working fine then I had to update the targetSDKVersion to 29 and compileSDKVersion…

Rigsby
- 180
- 2
- 14
2
votes
0 answers
PDF file search in 'React Native'
My objective is to search all PDF files in a android device in a fastest way. I am using rn-fetch-blob,
using RNFetchBlob.fs.lstat function in a recursive way is allowing me to get the list of all PDF files. But, its taking very long time almost 1-2…

Priyankar Saha
- 319
- 3
- 6
2
votes
0 answers
React Native RNFS delete file from download directory
I'm trying to delete some files from the Android Download Directory.
I got the android permission to the external storage to do it, so this is my code :
var RNFS = require('react-native-fs');
...
await RNFS.exists(filepath).then((exists) => {
if…

Thibault Dumas
- 1,060
- 2
- 10
- 21
2
votes
2 answers
RNFetchBlob.fs.mkdir executes successfully but doesn't create directory
I am trying to create directory in Downloads folder using RNFetcBlob. It doesn't throw any error but folder doesn't get created....
This is the method I am using...
async createAppDir() {
const granted = await PermissionsAndroid.request(
…

SrikanthPailla
- 33
- 3
2
votes
0 answers
Download a pdf and save to device (ios and android) in react-native
I am pretty new to react-native (app development as such).
I want to download and save a pdf file in user's device in react-native? react-native-fs and rn-fetch-blob showed up as popular options.
I am using redux-saga in my project and axios to…

Shriprada S
- 281
- 4
- 11
2
votes
1 answer
Subclassing and extending Promise for Jest mock
I'm using the module rn-fetch-blob to manage downloads in a React-Native Project. The module provides a StatefulPromise class which is basically a promise with some added functionality. This added functionality is creating problems for my Jest unit…

Jonathan Mosenkis
- 141
- 8
2
votes
0 answers
Copy Image to local storage using rn-fetch-blob
I am using react-native-image-picker to get image from the system. As soon as the user selects and image, i am dispatching an redux action and it looks like this.
imgSrc variable contains image URI. I used split and pop to get the image name.
But…

Suman Bhattarai
- 81
- 1
- 8