A data transfer library for React Native.
Questions tagged [react-native-fetch-blob]
128 questions
3
votes
0 answers
React Native, Tensorflow js, load model from local storage
I'm trying to develop a mobile application that should be able to load a tensorflow js model and then provide predictions to the final user. Everything works as intended when the required files for the model to work (model.json, weights.bin) are…

Nicolas Munera
- 31
- 2
3
votes
2 answers
React native: download pdf file with rn-fetch-blob on click a button
I have to let user download a pdf file whene he clock on button, I find that I have to use rn-fetch-blob instead of react-native-fetch-blob. In the documentation there is this code:
const { config, fs } = RNFetchBlob
let DownloadDir =…

zedArt
- 487
- 1
- 10
- 27
3
votes
4 answers
What does the statement const {tz, msg} = this.state; mean in the below code?
The use of this seems always confusing to me. As in the below source code.
Can anyone explain what does the statement const {tz, msg} = this.state; mean in the below code?
class App extends React.Component {
constructor(props) {
super(props);
…

Shivangi
- 41
- 6
3
votes
0 answers
react-native-fetch-blob is very slow
I am trying to read a file from the bundle assets on Android, and I noticed that it's taking a lot of time. The assets are XOR-encrypted PDF files (if anyone wants, I'm happy to provide them).
I cobbled together a bit of a benchmark using…

Dev Aggarwal
- 7,627
- 3
- 38
- 50
3
votes
0 answers
how to optimize image size by react-native-fetch-blob
I am working on react native share. Now i can share image with title and message. While i am sharing the image it's little slow. So I am thinking that i need to optimize the image file size. So how to do that in react native. I am using…

khalifathul
- 558
- 1
- 10
- 24
3
votes
2 answers
react-native-fetch-blob is blocking firebase calls n react native app
I have a react native app that uses Firebase, firestore.
for uploading images i am using "react-native-fetch-blob" to create a Blob.
in the js file that I use to upload the file, my code look like this:
const Blob = RNFetchBlob.polyfill.Blob
const…

amos
- 51
- 7
3
votes
2 answers
React Native. MP3 Binary String (Uint8Array(9549)) to stream or file
I am trying to play an audio file with binary string format that Amazon Polly returns.
For that, I am using 'react-native-fetch-blob' and reading a stream, but just keep getting errors from the bridge saying 'Invalid data message - all must be…

rubelux
- 61
- 1
- 6
3
votes
0 answers
Check free storage space with RNFetchBlob (VS. RNFS)?
I am currently working on a React-Native project using React-Native-FS (RNFS). It appears that the project is not actively maintained and the developers of RNFS recommend to use React-Native-Fetch-Blob (RNFetchBlob). The latter is kind of satisfying…

Val Berthe
- 1,899
- 1
- 18
- 33
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
1 answer
React Native Blob is not a Function
I'm trying to create a blob in React Native using LaunchImageLibrary. My basic component is as follows:
import React from 'react'
import { Button, SafeAreaView } from 'react-native'
import { launchImageLibrary } from…

user2465134
- 8,793
- 5
- 32
- 46
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
0 answers
How can i store and update images in react-native with react-native-sqlite-storage
I am trying to store an image in my app's local storage folder later if i need to update or change image so i can?

Sumit Sharma
- 160
- 9
2
votes
0 answers
How to slice a file into chunks in react-native
ImagePicker.launchImageLibrary(options, (response) => {
createChunks(response);
});
I got file uri,path from imagepicker, i want to divide the file into chunks and upload as form data,How to divide the media file(mp4,etc) into chunks in…

Ajith
- 775
- 1
- 13
- 47
2
votes
1 answer
How do i access my downloaded file from React Native Fetch Blob?
I was wondering how to access my downloaded file for Android in React Native.
This is my code:
import RNFetchBlob from 'rn-fetch-blob';
...
let response = await RNFetchBlob.config({ trusty: validateCertificate, fileCache: true, appendExt: 'zip'…

Alan Chen
- 127
- 2
- 13
2
votes
1 answer
How to assign value to global variable in fetch method in react native?
I am creating a react native app and I'm getting data from an API. I need to assign specific data into a global variable. That means my API return JSON data like {user_Id:"1' user_name:'abc' user_email:'abc@gmail.con'}. I need to assign user_Id into…

Sidath
- 379
- 1
- 9
- 25