jayesbe / react-native-cacheable-image

An Image Component for React Native that will cache itself to disk.
MIT License
304 stars 78 forks source link

Warning: Can only update a mounted or mounting component. This usually means you called setState, replaceState ... #57

Closed panhna closed 7 years ago

panhna commented 7 years ago

I user the flatlist to load the video list. it ok for the first time. but until i try pull-to-refresh to reload the list again. it start show the warning message. and it the same warning keep increase when i try to scroll the list.

"react": "16.0.0-alpha.3",
"react-native": "0.43.2",
"react-native-cacheable-image": "^1.5.1",

simulator screen shot jun 17 2017 9 14 43 pm simulator screen shot jun 17 2017 9 19 40 pm

Any idea with this warning message? Thx

BeckhamVinoth commented 7 years ago

Me too got same error . did anyone solved this kinda error before ? please some one help me out from this . Am using react-native

jayesbe commented 7 years ago

May be related to the default, really depends on your code as well. However, this module is pretty much deprecated now, RN now provides an ImageStore API that handles caching, its more robust and can be used in conjunction with Image. CacheableImage is no longer necessary.