react-native中的loadingIndicatorSource和defaultSource props之间有什么区别? [英] What is the difference between loadingIndicatorSource and defaultSource props in react-native?
问题描述
loadingIndicatorSource 的定义两者的 defaultSource 属性几乎相同。
The defination for loadingIndicatorSource and defaultSource properties are almost same for both.
请问,任何人都能说出 loadingIndicatorSource 和 defaultSource 道具?
Please, can anyone tell what is the difference between loadingIndicatorSource and defaultSource props in react-native?
推荐答案
正如你所说他们真的类似但个人我会使用
Well as you said they are really similar but personally i would use
defaultSorce 作为占位符图片(加载图片源时显示的静态图片。)
defaultSorce for a placeholder image (A static image to display while loading the image source.)
而
loadingIndicatorSource 您可以在等待图片加载时使用它来显示微调器
loadingIndicatorSource you can use it to display a spinner while waiting the image is loaded
这不是一个有用的答案,但希望它会有所帮助!
再见!
Not such an useful answer but hope it will help! Bye!
这篇关于react-native中的loadingIndicatorSource和defaultSource props之间有什么区别?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!