Open elchicofrommo opened 4 years ago
I'm also not able to access the item index, or data length using renderItem. It's always displaying
item 1/3
on each slide.
@elchicofrommo you should set shouldComponent
update in your renderItem component and update the only item that you want to update
@elchicofrommo Are you using the default setup or a specific layout?
Might want to give version 4.0.0-beta.4
a try.
Sorry, please allow me to advertise for my open source library! ~ I think this library react-native-reanimated-carousel will solve your problem. It is a high performance and very simple component, complete with React-Native reanimated 2
Question
Maybe I"m not understanding the documentation. I thought that renderItem would only get called sparingly, but it seems it's getting called for every item in my list which is killing my performance. Is there some way to minimize the render to a local area around the active index?