diff --git a/React/Fabric/RCTSurfaceTouchHandler.mm b/React/Fabric/RCTSurfaceTouchHandler.mm index 3be366ae13cb23..68bee422a62f94 100644 --- a/React/Fabric/RCTSurfaceTouchHandler.mm +++ b/React/Fabric/RCTSurfaceTouchHandler.mm @@ -180,8 +180,6 @@ static PointerEvent CreatePointerEventFromActiveTouch(ActiveTouch activeTouch) event.pressure = touch.force; event.pointerType = PointerTypeCStringFromUITouchType(activeTouch.touchType); event.clientPoint = touch.pagePoint; - event.target = touch.target; - event.timestamp = touch.timestamp; return event; } @@ -196,8 +194,6 @@ static PointerEvent CreatePointerEventFromActiveTouch(ActiveTouch activeTouch) event.pressure = 0.0; event.pointerType = "mouse"; event.clientPoint = RCTPointFromCGPoint(clientLocation); - event.target = (Tag)view.tag; - event.timestamp = timestamp; return event; } diff --git a/ReactCommon/react/renderer/components/view/PointerEvent.cpp b/ReactCommon/react/renderer/components/view/PointerEvent.cpp index 5b5e1128390ed5..6e9ec3ed1d6c4b 100644 --- a/ReactCommon/react/renderer/components/view/PointerEvent.cpp +++ b/ReactCommon/react/renderer/components/view/PointerEvent.cpp @@ -24,8 +24,6 @@ std::vector getDebugProps( {"pressure", getDebugDescription(pointerEvent.pressure, options)}, {"pointerType", getDebugDescription(pointerEvent.pointerType, options)}, {"clientPoint", getDebugDescription(pointerEvent.clientPoint, options)}, - {"target", getDebugDescription(pointerEvent.target, options)}, - {"timestamp", getDebugDescription(pointerEvent.timestamp, options)}, }; } diff --git a/ReactCommon/react/renderer/components/view/PointerEvent.h b/ReactCommon/react/renderer/components/view/PointerEvent.h index f9094b86696bbf..a62e8ac530e455 100644 --- a/ReactCommon/react/renderer/components/view/PointerEvent.h +++ b/ReactCommon/react/renderer/components/view/PointerEvent.h @@ -34,16 +34,6 @@ struct PointerEvent { * opposed to the coordinate within the page). */ Point clientPoint; - /* - * A reference to the view to which the event was originally dispatched. - */ - Tag target; - /* - * The time at which the event was created (in milliseconds). By - * specification, this value is time since epoch—but in reality, browsers' - * definitions vary. - */ - Float timestamp; }; #if RN_DEBUG_STRING_CONVERTIBLE diff --git a/ReactCommon/react/renderer/components/view/TouchEventEmitter.cpp b/ReactCommon/react/renderer/components/view/TouchEventEmitter.cpp index b9b7382c5354d7..35ed17a1abb749 100644 --- a/ReactCommon/react/renderer/components/view/TouchEventEmitter.cpp +++ b/ReactCommon/react/renderer/components/view/TouchEventEmitter.cpp @@ -68,8 +68,6 @@ static jsi::Value pointerEventPayload( object.setProperty(runtime, "pointerType", event.pointerType); object.setProperty(runtime, "clientX", event.clientPoint.x); object.setProperty(runtime, "clientY", event.clientPoint.y); - object.setProperty(runtime, "target", event.target); - object.setProperty(runtime, "timestamp", event.timestamp * 1000); return object; }