chilijung / react-native-carousel-view

react-native carousel, support in both Android and iOS
73 stars 44 forks source link

Force Re-render Carousel #12

Open dsc-bon opened 6 years ago

dsc-bon commented 6 years ago

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!

devendrabhandari commented 6 years ago

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

dsc-bon commented 6 years ago

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.

devendrabhandari commented 6 years ago

Thanks @dsc-bon I will try that one.

linh3 commented 3 years ago

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