InteropEventEmitter

A reimplementation of RCTEventEmitter which is using a EventDispatcher under the hood.

On Fabric, you're supposed to use EventDispatcher to dispatch events. However, we provide an interop layer for non-Fabric migrated components.

This instance will be returned if the user is invoking context.getJsModule(RCTEventEmitter) and is providing support for the receiveEvent` method, so that non-Fabric ViewManagers can continue to deliver events also when Fabric is turned on.

Constructors

Link copied to clipboard
constructor(reactContext: ReactContext)

Functions

Link copied to clipboard
fun overrideEventDispatcher(eventDispatcherOverride: EventDispatcher?)
Link copied to clipboard
open override fun receiveEvent(targetTag: Int, eventName: String, params: WritableMap?)
Link copied to clipboard
open override fun receiveTouches(eventName: String, touches: WritableArray, changedIndices: WritableArray)

Receive and process touches