Package-level declarations

Types

Link copied to clipboard
Link copied to clipboard
class ContentSizeChangeEvent(surfaceId: Int, viewTag: Int, width: Int, height: Int) : Event<ContentSizeChangeEvent>

Event dispatched when total width or height of a view's children changes.

Link copied to clipboard
abstract class Event<T : Event?>
A UI event that can be dispatched to JS.
Link copied to clipboard
annotation class EventCategoryDef

Kotlin/Java specific declaration of the RawEvent::Category enum. Keep in sync with renderer/core/RawEvent.h.

Link copied to clipboard
interface EventDispatcher
Link copied to clipboard
Class responsible for dispatching UI events to JS.
Link copied to clipboard

Interface used to intercept events dispatched by EventDispatcher

Link copied to clipboard

An interface that can be implemented by a com.facebook.react.bridge.ReactContext to provide a first-class API for accessing the EventDispatcher from the com.facebook.react.bridge.UIManager.

Link copied to clipboard

Utilities for native Views that interpret native gestures (e.g. ScrollView, ViewPager, etc.).

Link copied to clipboard
open class PointerEvent : Event<T>
Link copied to clipboard

Class responsible for generating catalyst touch events based on android MotionEvent.

Link copied to clipboard

Paper JS interface to emit events from native to JS.

Link copied to clipboard

This is a transitional replacement for RCTEventEmitter that works with Fabric and non-Fabric renderers. RCTEventEmitter works with Fabric as well, but there are negative perf implications and it should be avoided.

Link copied to clipboard

An event representing the start, end or movement of a touch. Corresponds to a single [ ].

Link copied to clipboard

Utility for determining coalescing keys for TouchEvents. To preserve proper ordering of events, move events should only be coalesced if there has been no up/down event between them (this basically only applies to multitouch since for single touches an up would signal the end of the gesture). To illustrate to kind of coalescing we want, imagine we are coalescing the following touch stream:

Link copied to clipboard

Touch event types that JS module RCTEventEmitter can understand