webraptor / react-native-deck-swiper

tinder like react-native deck swiper
ISC License
134 stars 83 forks source link

Fix: dynamic cards list, cards not rendering straight #87

Closed nofacez closed 1 year ago

nofacez commented 1 year ago

fixes: #86, #84, #31

Explanation:

31 - cards were not rendering straight at some point because resetTopCard method didn't reset pan VALUE, but OFFSET only. Every other place where this.state.pan.setOffset was called, there was a call of this.state.pan.setValue

84, #86 - cards were not updated because swiper used cards from state, not from props.

apeTrackunit commented 1 year ago

Hi, when can we expect this to be merged? @webraptor @nofacez

The swiper isn't usable now, because the app fails whenever I run out of the cards or move from the screen with Swiper. #84

webraptor commented 1 year ago

Merged, released under 2.0.11