mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
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:
committed by
Facebook GitHub Bot
parent
7d4f6840f6
commit
a40747e2d8
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user