1import { Platform } from 'expo-modules-core';
2
3import { NotificationsEmitterModule } from './NotificationsEmitterModule.types';
4
5let warningHasBeenShown = false;
6
7export default {
8  addListener: () => {
9    if (!warningHasBeenShown) {
10      console.warn(
11        `[expo-notifications] Emitting notifications is not yet fully supported on ${Platform.OS}. Adding a listener will have no effect.`
12      );
13      warningHasBeenShown = true;
14    }
15  },
16  removeListeners: () => {},
17} as NotificationsEmitterModule;
18