129 questions
0
votes
1
answer
951
views
Save files in android/media/com.package
I'm trying to download and save files in the file system like how WhatsApp does it.
WhatsApp stores files inside android/media/com.whatsapp/.
I was able to download and save the file inside /data/user/...
0
votes
1
answer
322
views
Cannot upload data to Dropbox with react-native-blob-util
I am trying to upload a rather large file (~100mb, SQLite database) to Dropbox with react-native-blob-util. I authenticate with Dropbox to get an access token react-native-app-auth. The response I am ...
0
votes
1
answer
339
views
How to Get json.json file From Twitter Embed API in React Native App
According to the Twitter docs, in order to embed a twitter video into an app, you have to use their embed endpoint like so: https://publish.twitter.com/oembed?url=${enter_twitter_video_url}.
Example: ...
0
votes
0
answers
1k
views
Unable to read a PDF file at /storage/emulated/0/Android/data folder
I am using react-native-html-to-pdf to generate a PDF from an HTML string. It works file and I can see that the generated PDF path is /storage/emulated/0/Android/data/**MY_PACKAGE_NAME**/files/...
0
votes
1
answer
3k
views
RNFetchBlob download file for ios and change its filename
I use library react-native-blob-util for downloading file and saving it in the memory of the phone. It works fine on both, android and ios. However I also wish to give the file particular filename and ...
1
vote
0
answers
125
views
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.
...
0
votes
2
answers
403
views
I'm getting 'undefined is not an object (near '...}).fs.writeFile(' when trying to download base64 image png in react native React Native
Here is my code:
const saveImg = async (base64Img: string, success: Function, fail:Function) => {
const isAndroid = Platform.OS === "android"
const isIos = Platform.OS ...
1
vote
0
answers
422
views
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
0
votes
0
answers
573
views
React native rn-fetch-blob download issue
In react native library rn fetch blob i want to fetch data from api and save. The problem i am facing is that i want to save the file from api only after downloading complete. And if downloading ...
1
vote
0
answers
1k
views
React Native download manager fails with status code 16 when downloading on Android
I have been trying to fix an issue with downloading a zip file from our service on our Android app. The iOS works fine, but on Android I get the following error:
ExceptionsManager.js:149 Error ...
2
votes
1
answer
2k
views
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 { ...
0
votes
1
answer
8k
views
Save Files in the Android data folder
import RNFetchBlob from 'rn-fetch-blob'
var path = RNFetchBlob.fs.dirs.DocumentDir
RNFetchBlob
.config({ path: toFile })
.fetch('GET', fromUrl)
...
2
votes
0
answers
1k
views
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:...
1
vote
0
answers
851
views
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 ...
1
vote
0
answers
912
views
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-...