UNPKG

expo-modules-core

Version:
20 lines (15 loc) 622 B
'use client'; import { ensureNativeModulesAreInstalled } from './ensureNativeModulesAreInstalled'; import type { EventEmitter } from './ts-declarations/EventEmitter'; ensureNativeModulesAreInstalled(); /** * A subscription object that allows to conveniently remove an event listener from the emitter. */ export interface EventSubscription { /** * Removes an event listener for which the subscription has been created. * After calling this function, the listener will no longer receive any events from the emitter. */ remove(): void; } export default globalThis.expo.EventEmitter as typeof EventEmitter;