react-native-card-stack-swiper icon indicating copy to clipboard operation
react-native-card-stack-swiper copied to clipboard

InitialIndex does not work

Open thenayjourney opened this issue 4 years ago • 0 comments

Hello..I am implementing this package for my project. But unfortunately initialIndex does not work. I wanted to start from provided card index.

Here is my example.

<CardStack
      style={styles.content}
      onSwiped={onHandleCardSwipe}
      renderNoMoreCards={() => RenderNoMoreCards()}
      initialIndex={2} // here it does not start from index 2
      onSwipedAll={() => isDoneAllCards(true)}
      ref={useSwiper}>
          // Here is Card Components with 8 items array
 </CardStack>

thenayjourney avatar Dec 17 '21 03:12 thenayjourney