invertase / notifee

⚛️ A feature rich notifications library for React Native.
https://notifee.app
Apache License 2.0
1.88k stars 228 forks source link

TS2322 / Type / Object literal may only specify known properties, and  pressAction  does not exist in type #902

Closed astrahov closed 1 year ago

astrahov commented 1 year ago

https://notifee.app/react-native/docs/android/interaction#simple-behaviour

notifee.displayNotification({
  title: 'New notification',
  android: {
    channelId,
    pressAction: {
      id: 'default',
    },
  },
});

TS2322: Type Object literal may only specify known properties, and  pressAction  does not exist in type