
/**
 * This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
 *
 * Do not edit this file as changes may cause incorrect behavior and will be lost
 * once the code is regenerated.
 *
 * @generated by codegen project: GenerateEventEmitterCpp.js
 */

#include "EventEmitters.h"


namespace facebook::react {

void AndroidPopupMenuEventEmitter::onPopupMenuSelectionChange(OnPopupMenuSelectionChange $event) const {
  dispatchEvent("popupMenuSelectionChange", [$event=std::move($event)](jsi::Runtime &runtime) {
    auto $payload = jsi::Object(runtime);
    $payload.setProperty(runtime, "item", $event.item);
    return $payload;
  });
}


void AndroidPopupMenuEventEmitter::onPopupMenuDismiss(OnPopupMenuDismiss $event) const {
  dispatchEvent("popupMenuDismiss", [](jsi::Runtime &runtime) {
    auto $payload = jsi::Object(runtime);
    
    return $payload;
  });
}

} // namespace facebook::react
