react-native-cached-image icon indicating copy to clipboard operation
react-native-cached-image copied to clipboard

How to hide ActivityIndicator

Open ChongChou opened this issue 8 years ago • 4 comments

I don't want to show a ActivityIndicator in CachedImage, how to hide it?

ChongChou avatar Jul 26 '17 08:07 ChongChou

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 ;)

markusguenther avatar Jul 31 '17 19:07 markusguenther

setting opacity to 0 worked for me 👍

pavanmehta91 avatar Nov 15 '17 11:11 pavanmehta91

Setting loadingIndicator to null didn't work for me

pavan's solution did!

roycedot avatar Sep 21 '18 02:09 roycedot

Using a function that returns null on loadingIndicator works for me.

andres-torres-marroquin avatar Oct 10 '18 14:10 andres-torres-marroquin