react-native-deck-swiper
react-native-deck-swiper copied to clipboard
Empty cards still tries to render ( From Previous Repo still issue )
Card Index initializes with the maximum Card Index equal to the initial size of the cards Array. And if any element is deleted from cards Array or updated, it iterates over the same range of card indices, hence it will return undefined for items no longer present in Cards Array.
Add 'key' prop to Swiper component
For example:
<Swiper key={cards.length}
I'm facing this exact issue, but the suggested fix makes the Swiper go back to the first card, any way to set the initial card index? Like if I want the swiper to render the first time starting from index 3?