Add experimental disclaimers to pointer event APIs

Summary: Changelog: [Internal] - Add experimental disclaimers to pointer event APIs

Reviewed By: lunaleaps, p-sun

Differential Revision: D35682318

fbshipit-source-id: e85a37a2eb9568df636352e170bd42a3bb30a2f6
This commit is contained in:
Vincent Riemer 2022-04-18 15:47:55 -07:00 коммит произвёл Facebook GitHub Bot
Родитель 7d4f6840f6
Коммит a40747e2d8
4 изменённых файлов: 5 добавлений и 2 удалений

Просмотреть файл

@ -89,6 +89,7 @@ type MouseEventProps = $ReadOnly<{|
onMouseLeave?: ?(event: MouseEvent) => void,
|}>;
// Experimental/Work in Progress Pointer Event Callbacks (not yet ready for use)
type PointerEventProps = $ReadOnly<{|
onPointerEnter?: ?(event: PointerEvent) => void,
onPointerLeave?: ?(event: PointerEvent) => void,

Просмотреть файл

@ -50,6 +50,8 @@ const bubblingEventTypes = {
bubbled: 'onTouchMove',
},
},
// Experimental/Work in Progress Pointer Events (not yet ready for use)
topPointerCancel: {
phasedRegistrationNames: {
captured: 'onPointerCancelCapture',

Просмотреть файл

@ -86,7 +86,7 @@ const bubblingEventTypes = {
},
},
// Pointer Events
// Experimental/Work in Progress Pointer Events (not yet ready for use)
topPointerCancel: {
phasedRegistrationNames: {
captured: 'onPointerCancelCapture',

Просмотреть файл

@ -445,7 +445,7 @@ RCT_CUSTOM_VIEW_PROPERTY(onTouchMove, BOOL, RCTView) {}
RCT_CUSTOM_VIEW_PROPERTY(onTouchEnd, BOOL, RCTView) {}
RCT_CUSTOM_VIEW_PROPERTY(onTouchCancel, BOOL, RCTView) {}
// Pointer Events
// Experimental/WIP Pointer Events (not yet ready for use)
RCT_EXPORT_VIEW_PROPERTY(onPointerCancel, RCTBubblingEventBlock)
RCT_EXPORT_VIEW_PROPERTY(onPointerDown, RCTBubblingEventBlock)
RCT_EXPORT_VIEW_PROPERTY(onPointerMove2, RCTBubblingEventBlock)