A data transfer library for React Native.
Questions tagged [react-native-fetch-blob]
128 questions
14
votes
3 answers
Open a file (pdf, word, excel, png etc.) on device with its default application in react-native
I'm using react-native-fs to download a file(pdf, word, excel, png etc.) and I need to open it in other application. Is it possible to open downloaded file with Linking or better open a dialog with possible apps like when using Sharing? Linking in…

mradziwon
- 1,206
- 1
- 9
- 13
9
votes
2 answers
React-native-android - How to save an image to the Android file system and view in the phone's 'Gallery'
Is it possible to save an image to the android's local file system so it can be viewed from the phone's 'Gallery' and in a folder??
I found this react-native-fs library but after studying the documentation and working through an example I am still…

Larney
- 1,674
- 4
- 23
- 47
8
votes
5 answers
React Native Fetch Blob - undefined is not an object (evaluating 'RNFetchBlob.DocumentDir')
Disclaimer
I have looked at the trouble shooting page of the wiki, however I still cannot fix the problem I am having.
RN version:
react-native-cli: 2.0.1
react-native: 0.43.4
My code:
import FileUploader from…

zoecarver
- 5,523
- 2
- 26
- 56
7
votes
0 answers
Partial download of mp4 file with rn-fetch-blob, react-native-video throwing unrecognized error
I'm trying to implement local video caching into my video-streaming application.
I'm using:
react-native-video for video playback
rn-fetch-blob for downloading files
I've managed to start the download at the beginning, replace the original URL…

Žiga Kerec
- 71
- 1
- 4
7
votes
1 answer
How to list files in assets folder react-native
I created a folder with some subfolders in android/app/src/main/assets/. I re-compiled the app and I am trying to get a list of the folder/files I put in there. However, whenever I run one of the following commands (from…

four-eyes
- 10,740
- 29
- 111
- 220
6
votes
1 answer
Need to be able to download a PDF given a BASE64 String upon componentdidmount
I am trying to give the ability to download a PDF given a Base64 string. I am able to view the PDF using "react-native-view-pdf". Just unable to figure out how to actually get the file to download. This is going to need to work for android and…

Sgreulic
- 63
- 1
- 1
- 5
6
votes
1 answer
React-Native : Need Help Accessing Android Bundled Images with React-Native-Fetch-Blob
I have a folder of Images in my project
I'm struggling to access an image like this
ProjectRoot/App/Images/image.png
in iOS I can access it by using:
RNFetchBlob.fs.dirs.MainBundleDir + 'assets/App/Images/image.png'
What would be the Android way?…

Andrew Whale
- 71
- 4
6
votes
1 answer
How to download and retrieve local files on iOS with react native and react-native-fetch-blob?
I'm using react-native-fetch-blob to download mp3 files and then playing them later. The problem is that the actual path for RNFetchBlob.fs.dirs.DocumentDir changes when I close the app and restart again, which means I can't use the absolute file…

NatashaC
- 512
- 1
- 10
- 22
5
votes
1 answer
Download files on iOS with React Native
I am building an app that lets the user download a PDF file when he clicks on a button.
I use the library react-native-fetch-blob for this purpose.
It works well on Android.
On iOS, the console log tells me the download has worked well, but:
I…

Arnaud
- 4,884
- 17
- 54
- 85
4
votes
3 answers
React Native Fetch Blob creating issue while pod install on iOS
I've install react-native-fetch-blob on react-native version 0.60.5.While I run pod install, the error appears as you can see in the
Kindly guide me on how to resolve this issue

Zaid Qureshi
- 611
- 10
- 19
4
votes
0 answers
Stream api with fetch in a react-native app
I was trying to use Stream api with fetch in react-native app, I implemented with the help of a great example mentioned at jeakearchibald.com . code is something similar to :-
fetch('https://html.spec.whatwg.org/').then(function(response) {
…

Manjeet Singh
- 4,382
- 4
- 26
- 39
4
votes
0 answers
base64 image not sharing in react native android
I am using react-native-share to share something in hangouts, whatsapp and so on... here is my code that i tried,
i imported the
import RNFetchBlob from 'react-native-fetch-blob';
import Share from 'react-native-share';
so used RNFetchblob to…

khalifathul
- 558
- 1
- 10
- 24
4
votes
8 answers
Cannot read property 'DocumentDir' of undefined React-Native Firebase React-native-fetch-blob
I have exhausted all threads on the internet and can't find a solution.
I'm trying to photo upload to firebase from my react-native app using react-native-fetch-blob.
RN ios simulator running iphone 6.
Not using Expo
I have NOT tried running on…

Gavin Thomas
- 1,827
- 2
- 11
- 17
4
votes
0 answers
react-native-fetch-blob multipart data image upload issue
I'm right now working on a react native project that have a taking image and upload function, and I'm using react-native-fetch-blob for passing multipart data to upload a single file. However, it seems to be not passing any data to my api.
I'm also…

Elvis Wong
- 348
- 2
- 8
4
votes
2 answers
Send parameters using RNFetchBlob.fetch
I am trying to send data to a POST api but I can't figure out what's the correct syntax, I am using this:
RNFetchBlob.fetch(
'POST',
'htttp://www.myserver.com/api/login',
{ 'Content-Type': 'application/json'}
)
.then(response => {
…

relez
- 750
- 2
- 13
- 28