I am building an app with React Native, for Android and iOS. I am trying to let the user download a PDF file when clicking on a button.
- react-native-file-download does not support Android
- react-native-fs does nothing when I trigger downloadFile (nothing shows up on the notification bar), and I am not able to find the file after that. I added
android.permission.WRITE_EXTERNAL_STORAGE
to the Android Manifest file. I double-checked that the file I am trying to download exists (when it does not, the library throws an error)
I do not find other solutions for this problem. I have found libraries for viewing a PDF, but I would like to let the user download the PDF.