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