Answer the question
In order to leave comments, you need to log in
How to download a file by url with api?
From the apish comes the URL to the file that is on the web, you need to somehow download it to your smartphone. I would not want to download something with npm or yarn because the application weighs so much, but if the most optimal solution is react-native-fs, then ok )))
Answer the question
In order to leave comments, you need to log in
As the easiest option, open it with a link. Linking.openUrl('link') well, in the dock you can read await there, it would not hurt to throw it. The result will be transferred to the browser and downloaded
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question