Questions tagged [react-native-fetch-blob]

A data transfer library for React Native.

Repository

128 questions
2
votes
1 answer

React Native. "Can't find variable" error with react-native-fetch-blob

I'm implementing the downloading PDF file with react-native-fetch-blob. But I have an error "Can't find variable: received" onPDFPressed(){ RNFetchBlob .config({ notification: true, path:…
valerybodak
  • 4,195
  • 2
  • 42
  • 53
2
votes
1 answer

How can i implement AJAX queuing in react-native using fetch

I just have implemented AJAX calls using fetch in react-native. Implementing queuing of these AJAX calls hasn't been very well implemented. Can any one help me?
NAVEED
  • 95
  • 1
  • 1
  • 9
2
votes
0 answers

Firebase storage upload stopped working on react-native

I am using "firebase": "^3.6.0", "react": "15.3.2", "react-native": "0.37.0", "react-native-camera": "git+https://github.com/lwansbrough/react-native-camera.git", "react-native-fetch-blob": "^0.10.0", "react-native-vector-icons":…
1
vote
0 answers

I’m using RN-fetchblob for downloading files and Pictures but the swipeable does not change language when i change it on my IOS device

Swipe-able of RN-fetchBlob 'Picture is attached above' Problem: problem is that it does not change the language when i change my language on my IOS device in settings and as well as on my Simulator. Actually my app is in two languages English and…
1
vote
0 answers

rnFetchBlob Error: Download manager failed to download from "url"

i'm trying to download a pdf file from url but i'm getting this error Error: Download manager failed to download from "myurl" status code=16 i can download the pdf file when i use the same url in chrome const downloadFile = (FILE_URL) => { …
1
vote
0 answers

View local file using file viewer in React Native

I want to open an external file viewer for viewing files such as docx, txt, ppt, pdf and others. My files are getting stored within the android folder inside the com.appname folder. I am using react-native-file-viewer in order to open such file. But…
1
vote
1 answer

Unable to create folder in Android 11 React Native using React Native FS

downloadFile = async (url) => { try { const granted = await PermissionsAndroid.request( PermissionsAndroid.PERMISSIONS.WRITE_EXTERNAL_STORAGE, { title: 'Storage Permission', message: 'App needs access to…
1
vote
1 answer

How to send `application/zip` in react-native

I want to generate a zip file and then POST it up. I am trying to leverage this lib JSZip to create a zip with several files in it. Here is what I have right now. handlePendingItems = async (routeId: number) => { try { await…
Tzvetlin Velev
  • 1,897
  • 2
  • 17
  • 31
1
vote
0 answers

Downloading PDF file in React Native for IOS using rn-fetch-blob

I use this library (rn-fetch-blob) to download base64 pdf from the server. This is my code below: RNFetchBlob.config({ fileCache: true, path: RNFetchBlob.fs.dirs.DocumentDir + "/" + this.getFileName(), }) .fetch( …
1
vote
0 answers

React Native react-native-image-picker, react-native-fetch-blob workaround to clear images taken from camera

You have probably noticed that storageOptions: { cameraRoll: false } parameter is not working on Android when using react-native-image-picker library. Instead it saves pictures taken from camera to a gallery. Alternatively, storageOptions: { path:…
1
vote
1 answer

fetch-blob-not post image not wroking with Laravel api - react native

I need help , i have working with react native and api laravel to upload image but not uploading ? this my react native code var dataphoto = this.state.photoData; // this from ImagePicker RNFetchBlob.fetch('POST', 'my_url/api/storimage', { …
user13091150
1
vote
1 answer

rn-fetch-blob: How to test upload image

How to mock RNFetchBlob for upload image using jestjs? Code: await RNFetchBlob.fetch( 'POST', 'https://www.example.net/api/v1/upload-image', { Authorization: 'Bearer token', 'Content-Type': 'application/octet-stream', }, …
1
vote
0 answers

react-fetch-blob when use downloadManager the progress is not called

I use react-native-fetch-blob to download my apk, then update the application. but when I use the rfb downloadmanager config for android, the progress method is not called. what is the reason? RNFetchBlob .config({ addAndroidDownloads :…
Dennis
  • 59
  • 7
1
vote
1 answer

react native run android has an error. Cannot change dependencies of configuration ':packagename:androidApis' after it has been resolved error

I have a React Native project with many libraries like React Native Fetch Blob, React Native Camera, etc. For run the project I clone my repository and install node modules so run react-native run command encounter below error: After hours of…
1
vote
1 answer

How can I download file from server into a specific folder in my project code workspace in react-native?

I have a react-native project witch I need to update my assets sometimes, I have an 'app/assets' folder in my project root near the app.js, I installed 'react-native-fetch-blob' to download file and also using it's file system api to write it in my…
Pouya92
  • 453
  • 1
  • 8
  • 18
1 2 3
8 9