react-native-snap-carousel
react-native-snap-carousel copied to clipboard
Show different UI when item is active
Is it possible to show the buttons only on active item and the items that are not active don't have any buttons?
@acopetkovic
Just use onSnapToItem
prop to get active index, and compare if card is active (index === activeIndex
) - show buttons, if is not active - hide.