react-native-cached-image
react-native-cached-image copied to clipboard
How to hide ActivityIndicator
I don't want to show a ActivityIndicator in CachedImage, how to hide it?
Just from reading the docs I would say you have two possible ways.
activityIndicatorProps
- you can define the style and this style is used in the renderLoader function
- so you can hide the loader with
loadingIndicator
- component prop to set custom ActivityIndicator
- so it should be possible to just use null or something you want.
I did not test it, but it should be easy ;)
setting opacity to 0 worked for me 👍
Setting loadingIndicator to null didn't work for me
pavan's solution did!
Using a function that returns null on loadingIndicator works for me.