Questions tagged [react-native-fetch-blob]

A data transfer library for React Native.

Repository

128 questions
1
vote
0 answers

React Native converting file path to URI after download

I am developing a React Native application for learning purposes. What I am trying to do now is that I am trying to convert the file path to the URL of a file that is downloaded from the remote server. I am using react-native-fetch-blob package to…
Wai Yan Hein
  • 13,651
  • 35
  • 180
  • 372
1
vote
0 answers

Issue with fetch, response.json()

I am trying to make an api call using fetch method in react-native. I have rn-fetch-blob for uploading images in one screen which is on another different screen. This particular function was for me to initiate a payment online using paystack.…
1
vote
1 answer

Create FormData with image array and uploading using rn-fetch-blob in React-Native

I'm using rn-fetch-blob library to upload some pictures to the server. But I'm getting different types of errors, such as no Boundary on Content-Type or errors with the FormData structure itself such as " of type NSMutableDictionary cannot be…
msqar
  • 2,940
  • 5
  • 44
  • 90
1
vote
2 answers

How to pass POST parameters in fetch for uploading image to server in React Native?

This is the code with I'm trying to send my image to server. postData = async () => { var location = await AsyncStorage.getItem('location'); var path = await AsyncStorage.getItem('path'); var post_type = await…
1
vote
1 answer

Cannot download big file(80mb zip) using react-native-fetch-blob

RNFetchBlob .config({ addAndroidDownloads: { useDownloadManager: true, //changes here path: RNFetchBlob.fs.dirs.SDCardApplicationDir + '/build_change_philippines.zip', …
Prakash Bokati
  • 191
  • 1
  • 11
1
vote
0 answers

how to import a excel file from link in react native

I want to fetch an excel file from the server but i have a warning message RNFetchBlob error when sending request : null this is the code : const url…
1
vote
0 answers

how to get excel file with react-native-fetch-blob

I want to fetch an excel file from the server but i have a warning message RNFetchBlob error when sending request : null this is the code : const url…
1
vote
2 answers

ClojureScript With React Native - File Download

I want to download a file into the phone storage from a mobile application with ClojureScript and react-native. Files are already uploaded to an Amazon S3 bucket. The file URLs would be something like…
1
vote
0 answers

RNFetchBlob can't download properly ( creating 0 B files)

I'm using RNFetchBlob to download some pictures and save them in the download directory. When I press the download button, it says the download finishes but there's just an image file with 0 bytes length in my download directory that obviously can…
1
vote
1 answer

ld: library not found for -lreact-native-fetch-blob with pods?

I just finished working with android and moved on to Xcode and it's been pretty challenging to work with. I am also unfamiliar with pods, but I know that when I installed them I got this from the log: Fetching podspec for `RNVectorIcons` from…
1
vote
0 answers

How to download a pdf file in react native?

I am building an app with React Native and Expo, for Android and iOS. I am trying to let the user download a PDF file when clicking on a button. It's a couple of days that I'm working on it and I find tow following…
1
vote
1 answer

React Native : Cannot read property 'Document Dir' of undefined when importing react-native-fetch-blob

I was trying to use react-native-fetch-blob in my project, but whenever I put an import RNFetchBlob from 'react-native-fetch-blob' and I get an error on the emulator as Cannot read property 'Document Dir' of undefined I have installed it using npm…
FortuneCookie
  • 1,756
  • 3
  • 25
  • 41
1
vote
1 answer

React Native: Error while building project

Initially, everything was working fine, I was trying to update the build:gradle and SDK versions I am getting the following while building the project Gradle sync failed: More than one variant of project :react-native-fetch-blob matches the…
Mr Robot
  • 887
  • 4
  • 18
  • 47
1
vote
1 answer

React Native : Not Fetched Firebase Storage Image

i am using react-native-image-cache-hoc & Blob const CacheableImage = imageCacheHoc(Image, { fileHostWhitelist: ['firebasestorage.googleapis.com'] }); and render
1
vote
1 answer

React native fetch blob causing error

Problem I added react native fetch blob to my react native (expoKit) project. I ran rnpm link in the console. When I opened android studio and tried to build the project, I got this error: Error:(54, 55) error: incompatible types:…
GIISE
  • 743
  • 3
  • 9
  • 24
1 2 3
8 9