itinance / itinance/react-native-fs
DownloadFile with thousands of files is blocking the application interface
- Dominant language
- C++
- Stars
- 5k
- Forks
- 1k
- PR merge metrics
- No merged PRs in 30d
Description
I am downloading 15019 images in JPG format with this code:
```
for (const item of requestUrl) {
const optios = {
fromUrl: item.urlPath,
toFile: item.path,
};
downloadFile(optios).promise;
}
```
❌ The app interface is getting blocked
### **Note important**: I know that RN runs on just one thread, so I implemented Headless JS with running in the foreground and background, it's working, but with the same behavior, the interface is blocking.
Can anyone help me solve this problem?
-------------------------------------------------------------------------------------------------------------------------------
**react-native-fs": "2.13.3**
**react-native: 0.59.9**
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.