RCTModern Event Emitter
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.
This interface will also be deleted in the distant future and be replaced with a new interface that doesn't need the old receiveEvent
method at all. But for the foreseeable future, this is the recommended interface to use for EventEmitters.
Inheritors
Functions
Link copied to clipboard
abstract fun receiveEvent(surfaceId: Int, targetTag: Int, eventName: String, canCoalesceEvent: Boolean, customCoalesceKey: Int, params: WritableMap?, category: Int)
Link copied to clipboard
abstract fun receiveTouches(eventName: String, touches: WritableArray, changedIndices: WritableArray)
Receive and process touches