Skip to content

Commit

Permalink
fix: Remove EventSubcriptionVendor type usage as it's removed in RN0.…
Browse files Browse the repository at this point in the history
…73 (#1001)
  • Loading branch information
williamsrosterfy authored Jun 10, 2024
1 parent f7c59f6 commit 3949930
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/react-native/src/NotifeeNativeModule.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

import NotifeeJSEventEmitter from './NotifeeJSEventEmitter';
import {
EventSubscriptionVendor,
EventSubscription,
NativeEventEmitter,
NativeModules,
NativeModulesStatic,
Expand All @@ -26,7 +26,7 @@ export default class NotifeeNativeModule {
this._moduleConfig = Object.assign({}, config);
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore - change here needs resolution https://github.com/DefinitelyTyped/DefinitelyTyped/pull/49560/files
this._nativeEmitter = new NativeEventEmitter(this.native as EventSubscriptionVendor);
this._nativeEmitter = new NativeEventEmitter(this.native as EventSubscription['subscriber']);
for (let i = 0; i < config.nativeEvents.length; i++) {
const eventName = config.nativeEvents[i];
this._nativeEmitter.addListener(eventName, (payload: any) => {
Expand Down

0 comments on commit 3949930

Please sign in to comment.