UNPKG

@trycourier/courier-react-native

Version:

Inbox, Push Notifications, and Preferences for React Native

14 lines 548 B
import { NativeModule } from "react-native"; import { EmitterSubscription } from "react-native"; export default class Broadcaster { private emitter; constructor(module: NativeModule); /** * Creates an event listener for the native function * @param key Key for the listener * @param callback Value returned for the listener callback * @returns Subscription */ addListener(id: string, callback: (value: any) => void): Promise<EmitterSubscription | undefined>; } //# sourceMappingURL=Broadcaster.d.ts.map