Touch Event
An event representing the start, end or movement of a touch. Corresponds to a single [ ].
TouchEvent coalescing can happen for move events if two move events have the same target view and coalescing key. See TouchEventCoalescingKeyHelper for more information about how these coalescing keys are determined.
Properties
Functions
Given two events, coalesce them into a single event that will be sent to JS instead of two separate events. By default, just chooses the one the is more recent, or this
if timestamps are the same.
Dispatch this event to JS using the given event emitter. Compatible with old and new renderer. Instead of using this or dispatchModern, it is recommended that you simply override `getEventData`.
Dispatch this event to JS using a V2 EventEmitter. If surfaceId is not -1 and `getEventData` is non-null, this will use the RCTModernEventEmitter API. Otherwise, it falls back to the old-style dispatch function. For Event classes that need to do something different, this method can always be overridden entirely, but it is not recommended.