P
P
pcdesign2019-06-07 10:04:11
React Native
pcdesign, 2019-06-07 10:04:11

Why does expo-file-system boot stop?

Here is the code, it works fine for a small number of files:

for (const filename of this.state.iconFiles) {
      const apiUrl = Config.siteURL;
      const result = await FileSystem.downloadAsync(
        `${apiUrl}/${filename}`,
        `${FileSystem.documentDirectory}${filename}`
      );
}

But when I need to download and save 374 files, it freezes all the time.
Downloads about 290 or 301 files, stops and hangs.
5cfa0c2622eec375810593.png
Restarted, cleaned, rebooted. Nothing helps. Approximately around the 300th file, everything stops.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question