Nativebase: DeckSwiper - How to know which card was swiped?

Created on 29 Apr 2017  路  5Comments  路  Source: GeekyAnts/NativeBase

react-native, react and native-base version

NB - 2.1.2
RN - 0.43.3
React - 16.0.0-alpha.6

This is not really a bug, but it's unclear from the documentation and there are no parameters for onSwipeLeft/onSwipeRight.

Let's say I want to do something to the card getting swiped - how do I know which got swiped? Is there a way to get a reference to the element?

enhancement

Most helpful comment

It looks like currently, both functions don't pass any parameters. However, there is already a selectedItem property in the state so I assume it would be a very quick fix.

All 5 comments

It looks like currently, both functions don't pass any parameters. However, there is already a selectedItem property in the state so I assume it would be a very quick fix.

Let it merge! 馃槃

Let it merge!

cc @shivrajkumar

Fixed with 2.1.5

Was this page helpful?
0 / 5 - 0 ratings

Related issues

nschurmann picture nschurmann  路  3Comments

inv2004 picture inv2004  路  3Comments

Bundas picture Bundas  路  3Comments

georgemickael-b picture georgemickael-b  路  3Comments

Cotel picture Cotel  路  3Comments