JedWatson / react-tappable

Tappable component for React
http://jedwatson.github.io/react-tappable/
MIT License
862 stars 90 forks source link

onPress callback does not pass event #25

Closed MichaelSalzman closed 9 years ago

MichaelSalzman commented 9 years ago

When the callback for the onPress action is called, it does not pass the event that initiated the press.

krasnoperov commented 8 years ago

The SyntheticEvent is pooled. This means that the SyntheticEvent object will be reused and all properties will be nullified after the event callback has been invoked.

Because of this event in onPress callback is useless.

Created new issue #62