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:
Родитель
7d4f6840f6
Коммит
a40747e2d8
|
@ -89,6 +89,7 @@ type MouseEventProps = $ReadOnly<{|
|
||||||
onMouseLeave?: ?(event: MouseEvent) => void,
|
onMouseLeave?: ?(event: MouseEvent) => void,
|
||||||
|}>;
|
|}>;
|
||||||
|
|
||||||
|
// Experimental/Work in Progress Pointer Event Callbacks (not yet ready for use)
|
||||||
type PointerEventProps = $ReadOnly<{|
|
type PointerEventProps = $ReadOnly<{|
|
||||||
onPointerEnter?: ?(event: PointerEvent) => void,
|
onPointerEnter?: ?(event: PointerEvent) => void,
|
||||||
onPointerLeave?: ?(event: PointerEvent) => void,
|
onPointerLeave?: ?(event: PointerEvent) => void,
|
||||||
|
|
|
@ -50,6 +50,8 @@ const bubblingEventTypes = {
|
||||||
bubbled: 'onTouchMove',
|
bubbled: 'onTouchMove',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
|
// Experimental/Work in Progress Pointer Events (not yet ready for use)
|
||||||
topPointerCancel: {
|
topPointerCancel: {
|
||||||
phasedRegistrationNames: {
|
phasedRegistrationNames: {
|
||||||
captured: 'onPointerCancelCapture',
|
captured: 'onPointerCancelCapture',
|
||||||
|
|
|
@ -86,7 +86,7 @@ const bubblingEventTypes = {
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
// Pointer Events
|
// Experimental/Work in Progress Pointer Events (not yet ready for use)
|
||||||
topPointerCancel: {
|
topPointerCancel: {
|
||||||
phasedRegistrationNames: {
|
phasedRegistrationNames: {
|
||||||
captured: 'onPointerCancelCapture',
|
captured: 'onPointerCancelCapture',
|
||||||
|
|
|
@ -445,7 +445,7 @@ RCT_CUSTOM_VIEW_PROPERTY(onTouchMove, BOOL, RCTView) {}
|
||||||
RCT_CUSTOM_VIEW_PROPERTY(onTouchEnd, BOOL, RCTView) {}
|
RCT_CUSTOM_VIEW_PROPERTY(onTouchEnd, BOOL, RCTView) {}
|
||||||
RCT_CUSTOM_VIEW_PROPERTY(onTouchCancel, 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(onPointerCancel, RCTBubblingEventBlock)
|
||||||
RCT_EXPORT_VIEW_PROPERTY(onPointerDown, RCTBubblingEventBlock)
|
RCT_EXPORT_VIEW_PROPERTY(onPointerDown, RCTBubblingEventBlock)
|
||||||
RCT_EXPORT_VIEW_PROPERTY(onPointerMove2, RCTBubblingEventBlock)
|
RCT_EXPORT_VIEW_PROPERTY(onPointerMove2, RCTBubblingEventBlock)
|
||||||
|
|
Загрузка…
Ссылка в новой задаче