PointerEvents: Remove '2' suffix

Summary: Changelog: [Internal] - We can now remove the '2' suffix as we had an internal implementation that was not truly aligned with W3C pointers but used the same name. We have aligned the internal types to match w3c so we can now remove the suffix that differentiates them.

Reviewed By: vincentriemer

Differential Revision: D37545813

fbshipit-source-id: 6f2336ae9e314066c340161113268c1f28621a71
This commit is contained in:
Luna Wei
2022-07-05 20:00:42 -07:00
committed by Facebook GitHub Bot
parent 22a067b79e
commit 8be49e8746
19 changed files with 145 additions and 203 deletions
@@ -64,24 +64,24 @@ const bubblingEventTypes = {
bubbled: 'onPointerDown',
},
},
topPointerEnter2: {
topPointerEnter: {
phasedRegistrationNames: {
captured: 'onPointerEnter2Capture',
bubbled: 'onPointerEnter2',
captured: 'onPointerEnterCapture',
bubbled: 'onPointerEnter',
skipBubbling: true,
},
},
topPointerLeave2: {
topPointerLeave: {
phasedRegistrationNames: {
captured: 'onPointerLeave2Capture',
bubbled: 'onPointerLeave2',
captured: 'onPointerLeaveCapture',
bubbled: 'onPointerLeave',
skipBubbling: true,
},
},
topPointerMove2: {
topPointerMove: {
phasedRegistrationNames: {
captured: 'onPointerMove2Capture',
bubbled: 'onPointerMove2',
captured: 'onPointerMoveCapture',
bubbled: 'onPointerMove',
},
},
topPointerUp: {
@@ -96,15 +96,6 @@ const directEventTypes = {
topAccessibilityAction: {
registrationName: 'onAccessibilityAction',
},
topPointerEnter: {
registrationName: 'onPointerEnter',
},
topPointerLeave: {
registrationName: 'onPointerLeave',
},
topPointerMove: {
registrationName: 'onPointerMove',
},
onGestureHandlerEvent: DynamicallyInjectedByGestureHandler({
registrationName: 'onGestureHandlerEvent',
}),