function removeEventListener(eventName, listener) {
  if (listener instanceof NetInfoRevoker) {
    listener.remove();
    return;
  }
  let event = eventName;
  if (eventName === 'change') {
    event = DEVICE_CONNECTIVITY_EVENT;
  }
  if (subscriptions.size <= 1) {
    Native.callNative('NetInfo', 'removeListener', event);
  }
  const handler = subscriptions.get(listener);
  if (!handler) {
    return;
  }
  if (!app) {
    app = getApp();
  }
  app.$off(
    event,
    handler,
  );
  subscriptions.delete(listener);
}
/**
 * Remove network status event event listener
 *
 * @param {string} eventName - Event name will listen for NetInfo module,
 *                             use `change` for listen network change.
 * @param {NetInfoRevoker} [listener] - The specific event listener will remove.
 */
Remove network status event event listener
@param {string} eventName - Event name will listen for NetInfo module,
use `change` for listen network change.
@param {NetInfoRevoker} [listener] - The specific event listener will remove.
Remove network status event event listener @param { string } eventName - Event name will listen for NetInfo module use ` change ` for listen network change . @param { NetInfoRevoker } [ listener ] - The specific event listener will remove .
function removeEventListener(eventName, listener) {
  if (listener instanceof NetInfoRevoker) {
    listener.remove();
    return;
  }
  let event = eventName;
  if (eventName === 'change') {
    event = DEVICE_CONNECTIVITY_EVENT;
  }
  if (subscriptions.size <= 1) {
    Native.callNative('NetInfo', 'removeListener', event);
  }
  const handler = subscriptions.get(listener);
  if (!handler) {
    return;
  }
  if (!app) {
    app = getApp();
  }
  app.$off(
    event,
    handler,
  );
  subscriptions.delete(listener);
}
function removeEventListener ( eventName , listener ) { if ( listener instanceof NetInfoRevoker ) { listener . remove ( ) ; return ; } let event = eventName ; if ( eventName === 'change' ) { event = DEVICE_CONNECTIVITY_EVENT ; } if ( subscriptions . size <= 1 ) { Native . callNative ( 'NetInfo' , 'removeListener' , event ) ; } const handler = subscriptions . get ( listener ) ; if ( ! handler ) { return ; } if ( ! app ) { app = getApp ( ) ; } app . $off ( event , handler , ) ; subscriptions . delete ( listener ) ; }
Remove network status event event listener
 @param {string} eventName - Event name will listen for NetInfo module,
                             use `change` for listen network change.
Remove network status event event listener @param { string } eventName - Event name will listen for NetInfo module use ` change ` for listen network change .