Skip to content

Commit

Permalink
Fix for RN 0.72+
Browse files Browse the repository at this point in the history
  • Loading branch information
antonnyman committed Mar 14, 2024
1 parent b8310fd commit 4e3f485
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 4e3f485

Please sign in to comment.