Files
react-native/packages/react-native/Libraries/Pressability
Vincent Riemer a7f7f8aca9 Ensure Pressability doesn't forward onClick to onPress when it receives a click via pointer events (#36614)
Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/36614

Changelog: [Internal] - Ensure Pressability doesn't forward onClick to onPress when it receives a click via pointer events.

This is a better version of D43128801 which ensures that click events which are triggered by the new pointer events event emitter don't trigger onPress in Pressability — avoiding the double onPress issue while ensuring all existing usecases of onClick continue to work.

Reviewed By: yungsters

Differential Revision: D44031433

fbshipit-source-id: 5ecdd132f7f91338c5a3632c05510f96495b512e
2023-03-28 16:00:20 -07:00
..