Skip to content

Commit

Permalink
fix: run animation on card long press (#2701)
Browse files Browse the repository at this point in the history
  • Loading branch information
lukewalczak authored May 12, 2021
1 parent d13cd89 commit 7bae89e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/Card/Card.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -136,8 +136,8 @@ const Card = ({
disabled={!(onPress || onLongPress)}
onLongPress={onLongPress}
onPress={onPress}
onPressIn={onPress ? handlePressIn : undefined}
onPressOut={onPress ? handlePressOut : undefined}
onPressIn={onPress || onLongPress ? handlePressIn : undefined}
onPressOut={onPress || onLongPress ? handlePressOut : undefined}
testID={testID}
accessible={accessible}
>
Expand Down

0 comments on commit 7bae89e

Please sign in to comment.