Quantcast
Channel: Active questions tagged react-native+typescript - Stack Overflow
Viewing all articles
Browse latest Browse all 6287

How to get the legacy paths in react-native-blob-util

$
0
0

I've been using rn-fetch-blob for my project so far but had some issues with it and would like to replace it with react-native-blob-util.

however, the latter implements media storage witch (to my understanding) changes paths from for ex: /storage/emulated/0/Download/ to /storage/emulated/0/Android/data/<package_name>/files/Download/ on newer android versions.

but when I did some digging on the library source code I found a property called LegacyDownloadDir and also in the release notes for the version 0.16.2 it said such properties do exist, but I can't find them.

I tried calling:

ReactNativeBlobUtil.fs.dirs.LegacyDownloadDir

but it returns undefined and Typescript can't seem to find it.

am I calling it the wrong way? or do I need to configure something before it shows up.

Thank you.


Viewing all articles
Browse latest Browse all 6287

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>