You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I also need to access the currentIndex I get renderItem but it's not changing on the very first change to forward/scrolldown after that it starts working but always shows activeIndex - 1, which works perfectly with back/scollup.
Question
I need to access to currentIndex inside renderItem to know if the current displayed item isFocus.
For the moment, I handle the index change with onSnapToItem with :
But there is some bug with hooks and react-native-snap-carousel (#559)
i have tried
refCarousel.current.currentIndex
but its doesn't trigger rerender :/There is a better way to handle currentIndex inside renderItem ?
The text was updated successfully, but these errors were encountered: