react-native-deck-swiper icon indicating copy to clipboard operation
react-native-deck-swiper copied to clipboard

Possible to make the dynamic list working

Open hyochan opened this issue 4 years ago • 0 comments

Followed by the issue, I've looked inside the code and the props coming in was copied to state variable and they are not updated correctly in my environment. When changing them to props, everything is working fine + the comment here.

Below is how I've made my code worked.

onSwiped={(index: number) => {
  if (items.length - index <= ITEM_CNT / 4) {
    loadNext(ITEM_CNT);
  }
}}

However, I'd like to make this possible using onSwipedAll just like how we are using FlatList.

hyochan avatar Dec 19 '20 09:12 hyochan