A
A
Artem Pyvovar2021-03-06 12:45:13
React Native
Artem Pyvovar, 2021-03-06 12:45:13

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

1 answer(s)
K
Kirill Makarov, 2021-03-13
@kirbi1996

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 question

Ask a Question

731 491 924 answers to any question