NativeModule: {
    addListener: (eventType: string) => void;
    removeListeners: (count: number) => void;
}

The React Native implementation of the IOS RCTEventEmitter which is required when creating a module that communicates with IOS

Type declaration

  • addListener: (eventType: string) => void

    Add the provided eventType as an active listener

  • removeListeners: (count: number) => void

    Remove a specified number of events. There are no eventTypes in this case, as the native side doesn't remove the name, but only manages a counter of total listeners