React-Native:下载文件时如何显示进度? [英] React-Native: How to show progress while downloading file?
本文介绍了React-Native:下载文件时如何显示进度?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
要求-我想显示一个进度指示器,显示已完成加载的百分比. 我已将提取用于api服务调用.是否可以通过任何方式获得下载完成的百分比? 还是任何第三方图书馆?
Requirement- I want to show a progressive indicator showing the percentage of loading completed. I have used fetch for api service calls. Is it possible to get percentage of downloading completion in any way? Or any third party library?
推荐答案
如果要显示任何图像的下载进度,可以使用"react-native-fetch-blob".请参考以下网址以了解更多信息
in case you want to show downloading progress of any image , you can use "react-native-fetch-blob". Please refer below url to know more
https://www.npmjs.com/package/react-native -fetch-blob
这篇关于React-Native:下载文件时如何显示进度?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文