Questions tagged [react-native-fs]
208 questions
0
votes
1 answer
How to save in local AsyncStorage some text file?
I'm creating a new app with react native that fetch some users from a url.
Next, you can choose one of these users from a list and choose another data. Then you have to select a time.
For example: is like when you have a list of artist, then you…

traker98
- 3
- 2
0
votes
1 answer
How can I bundle .proto files with a React Native app?
I am trying to build an app to communicate with embedded devices using Protocol Buffers with protobuf.js
I want to load the content of .proto files at runtime. The files are pulled from a shared repo and I want to have them bundled with the app at…

Shamwow
- 3
- 1
0
votes
0 answers
How to get base64 of photos:// path images?
In my project I am retrieving gallery's albums using react-native-photos-framework which giving me gallery's album. Then using those album object I am fetching images of that particular album, which returning assets array. Those assets contains uri…

Kishan Bharda
- 5,446
- 3
- 30
- 57
0
votes
2 answers
react-native-aws3 : Must provide `contentType` option with the object content type
I have created an app which captures images and uploads to aws3. Previously, captured photos are stored in the Pictures folder and I was uploading from the Picture folder. Now, I am storing all the photos in my app folder(I have created a folder in…

Vidya Kabber
- 171
- 1
- 16
0
votes
1 answer
React-native-fs reports success, but seems to fail, as files are not being written
I am trying to use react-native-fs for some basic file storage. Here is some code.
var RNFS = require('react-native-fs');
static testSave() {
var count = this.countFiles(".txt");
var path = RNFS.DocumentDirectoryPath + '/test' + count +…

Jack Thomas
- 44
- 4
0
votes
1 answer
How to use react-native-fs?
If componentWillMount() function is running first time, items array is empty. Why?
componentWillMount() {
items.splice(0, items.length);
RNFS.readDir(RNFS.DocumentDirectoryPath)
.then((result) => {
console.warn('result: ',…

Onur Güler
- 25
- 2
- 6
0
votes
1 answer
react-native filesystem can't find app files
I'm building an app with react-native, and I'm trying to use the react-native-fs module to list out a series of images located in the app folder. The images are located in a folder in the app project folder named 'data', so for example if I want to…

user3596565
- 35
- 1
- 7
0
votes
0 answers
How to get value from then in javascript
i have maybe stupid question.
I m trying to save XML file which i load through xml2js with readfile function.
I want to store file content string to global variable but i dont know how to get from promise then a value.
var myval;
var simpleStore =…

Vojtěch Prchal
- 141
- 1
- 2
- 11
0
votes
1 answer
How can i access icloud drive files in simulator with react-native-fetch-blob
i have tried using react-native-fs to do the same but was suggested that we cant access icloud with -fs. Please, if i can with react-native-fetch-blob, then i need some suggestions of how do i implement it.

HSBP
- 735
- 2
- 8
- 22
0
votes
0 answers
On running one promise of a process then other promises are not responding until first is finish
I am working in a react native application in which I have a song list from server. If user click on any song from list then song is started to download from server to local using react-native-fs. In react-native-fs there is a promise which waits to…

Akhilesh Mourya
- 666
- 1
- 4
- 15
0
votes
1 answer
How to search through iPhone filesystem downloads folder for mp3 files in react native
I'm working on an react native ios app where I want to look through the iPhone's downloads folder for .mp3 files that I can play. I've found a library react-native-fs but right now I am only able to see files added to my app and I can't figure out…

letter Q
- 14,735
- 33
- 79
- 118
0
votes
1 answer
React Native download file from Sharepoint Online
I'm developing an application with React Native that connects to Sharepoint Online. I'm able to log into SPO and use "fetch" to get lists' content through the HTTP-Only/Secure cookies rtFa and FedAuth that are automatically set from login…

Meshz
- 11
- 3
-1
votes
2 answers
How can I change my local image to blob file type in React Native?
I want to change my local image into blob file type. How can I do it with react-native-fs.
This is what I tried below
RNFS.readFile('../../assets/imgs/profile.jpg', 'base64')
.then(res =>{
console.log(res);
alert("res");
});
This…

Shubham Bisht
- 577
- 2
- 26
- 51