-
- All Implemented Interfaces:
-
com.facebook.react.bridge.JavaScriptModule
,com.facebook.react.uimanager.events.RCTEventEmitter
public interface RCTModernEventEmitter implements RCTEventEmitter
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.
-
-
Method Summary
Modifier and Type Method Description abstract void
receiveEvent(int surfaceId, int targetTag, String eventName, @Nullable() WritableMap event)
abstract void
receiveEvent(int surfaceId, int targetTag, String eventName, boolean canCoalesceEvent, int customCoalesceKey, @Nullable() WritableMap event, int category)
abstract void
receiveTouches(TouchEvent event)
-
-
Method Detail
-
receiveEvent
abstract void receiveEvent(int surfaceId, int targetTag, String eventName, @Nullable() WritableMap event)
-
receiveEvent
abstract void receiveEvent(int surfaceId, int targetTag, String eventName, boolean canCoalesceEvent, int customCoalesceKey, @Nullable() WritableMap event, int category)
-
receiveTouches
abstract void receiveTouches(TouchEvent event)
-
-
-
-