react-native-carousel-view icon indicating copy to clipboard operation
react-native-carousel-view copied to clipboard

Force Re-render Carousel

Open dsc-bon opened this issue 7 years ago • 4 comments

Hi,

First, thanks for this amazing plugin. I'm currently challenge by this issue. Is there any way to actively re-render the carousel? Inside my carousel, there are several components that changes values which updates there respective views. But every time I re-loop the new data. It only renders the updated data on the second instance.

Please help.

Thanks!

dsc-bon avatar Feb 16 '18 07:02 dsc-bon

I am facing the same issue. Tried everything but re-rendering of carousel is not working.

devendrabhandari avatar Mar 07 '18 17:03 devendrabhandari

Hi @devendrabhandar, I was not able to solve this. But what I did is I've used a different Carousel Plugin. Use this instead https://github.com/leecade/react-native-swiper.

dsc-bon avatar Mar 07 '18 23:03 dsc-bon

Thanks @dsc-bon I will try that one.

devendrabhandari avatar Mar 08 '18 04:03 devendrabhandari

To fix this issue, just give the component a new key prop like <Carousel key={newId} />

linh3 avatar Nov 10 '20 09:11 linh3