Files
zeekay 55a7f247ca init: extract wallet from lux/exchange monorepo
Copies apps/extension, apps/mobile and 10 pkgs (wallet, ui, config,
utilities, sessions, gating, notifications, analytics, eslint-config,
prices) into a standalone pnpm workspace.  Resolves merge conflict
markers in extension and mobile package.json files, strips build
artifacts (.wxt, .output, Pods).
2026-04-11 01:59:19 -07:00

32 lines
638 B
Swift

//
// SilentPushEventEmitter.swift
// Uniswap
//
// Created by John Short on 9/29/25.
//
import React
@objc(SilentPushEventEmitter)
open class SilentPushEventEmitter: RCTEventEmitter {
public static weak var emitter: RCTEventEmitter?
override init() {
super.init()
SilentPushEventEmitter.emitter = self
}
open override func supportedEvents() -> [String] {
["SilentPushReceived"]
}
@objc(emitEventWithPayload:)
public static func emitEvent(with payload: [String: Any]) {
guard let emitter = emitter else {
return
}
emitter.sendEvent(withName: "SilentPushReceived", body: payload)
}
}