webraptor / react-native-deck-swiper

tinder like react-native deck swiper
ISC License
126 stars 81 forks source link

setting VerticalSwipe = false causes an issue #9

Closed thedanielha closed 3 years ago

thedanielha commented 3 years ago

` <>

{ return ( {card} ); }} onSwiped={(cardIndex) => { console.log(cardIndex); }} onSwipedAll={() => { console.log('onSwipedAll'); }} cardIndex={0} verticalSwipe={false} backgroundColor={'#4FD0E9'} stackSize={3}>
  </>`

following error is occurred when setting verticalSwipe={false}.

"Invariant Violation: Bad mapping of type number for key dy, event value must map to AnimatedValue"

By the way, thank you for your decision to keep taking care of this repo.

webraptor commented 3 years ago

This has been fixed over here, version 1.7.1, but we can't yet make NPM release, so you'd have to use the branch to install the package until npm release is possible.