How to use the @unimodules/core.RCTDeviceEventEmitter.addListener function in @unimodules/core

To help you get started, we’ve selected a few @unimodules/core examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github expo / expo / packages / expo / build / Notifications / Notifications.js View on Github external
function _maybeInitEmitter() {
    if (!_emitter) {
        _emitter = new EventEmitter();
        RCTDeviceEventEmitter.addListener('Exponent.notification', emitNotification);
    }
}
export function emitNotification(notification) {
github expo / expo / packages / expo / src / Notifications / Notifications.ts View on Github external
function _maybeInitEmitter() {
  if (!_emitter) {
    _emitter = new EventEmitter();
    RCTDeviceEventEmitter.addListener('Exponent.notification', emitNotification);
  }
}

@unimodules/core

Universal modules core

MIT
Latest version published 1 year ago

Package Health Score

67 / 100
Full package analysis