Closed AndrewSouthpaw closed 7 years ago
Will this have other side effects?
Not as far as I can tell? We've been using it in production with no negative impacts. But then, I don't know this library super well. :)
We should only need to do this if onPress
exists
The SyntheticEvent is pooled (https://facebook.github.io/react/docs/events.html#event-pooling) for performance reasons, which means the event object cannot be normally accessed asynchronously. Persisting the event object fixes the issue.
Fixes #62