'react-native-fs' 和 'react-native-fetch-blob' 找不到下载的文件

'react-native-fs' and 'react-native-fetch-blob' can not find the downloaded file

我使用 'react-native-fs' 和 'react-native-fetch-blob' 在 android 模拟器中测试文件下载, 控制台显示下载成功,但我在模拟器文件系统中找不到该文件,或者它没有下载成功,谁能告诉我该怎么做,谢谢

将此函数用于 Android 和 react-native-fetch-blob

它对我有用,下载的文件将放在 device/emulator.

的下载目录中
function downloadFile(url,fileName) {
  const { config, fs } = RNFetchBlob;
  const downloads = fs.dirs.DownloadDir;
  return config({
    // add this option that makes response data to be stored as a file,
    // this is much more performant.
    fileCache : true,
    addAndroidDownloads : {
      useDownloadManager : true,
      notification : false,
      path:  downloads + '/' + fileName + '.pdf',
    }
  })
  .fetch('GET', url);
}