first commit

This commit is contained in:
2026-03-10 16:18:05 +00:00
commit 11f9c069b5
31635 changed files with 3187747 additions and 0 deletions

View File

@@ -0,0 +1,24 @@
import { NativeEventEmitter } from 'react-native';
import { EventSubscription } from './EventEmitter';
type NativeModule = {
__expo_module_name__?: string;
startObserving?: () => void;
stopObserving?: () => void;
addListener?: any;
removeListeners?: any;
};
/**
* @deprecated Deprecated in favor of `EventEmitter`.
*/
export declare class LegacyEventEmitter {
_listenerCount: number;
_nativeModule: NativeModule;
_eventEmitter: NativeEventEmitter;
constructor(nativeModule: NativeModule);
addListener<T>(eventName: string, listener: (event: T) => void): EventSubscription;
removeAllListeners(eventName: string): void;
removeSubscription(subscription: EventSubscription): void;
emit(eventName: string, ...params: any[]): void;
}
export {};
//# sourceMappingURL=LegacyEventEmitter.d.ts.map