mouselangelo / react-native-actions-shortcuts

iOS Home screen Quick Actions & Android App Shortcuts for react-native
MIT License
131 stars 22 forks source link

typescript error Argument of type 'ShortcutsType' is not assignable to parameter of type 'NativeModule'. Type 'ShortcutsType' is missing the following properties from type 'NativeModule': addListener, removeListeners #10

Open hengkx opened 3 years ago

MenachemZeivald commented 1 year ago

I’m experiencing the same issue. Does anyone have a solution?

ivankdev commented 4 months ago

same

mattijsf commented 4 months ago

I silenced the warning through:

new NativeEventEmitter(Shortcuts as unknown as NativeModule)

I guess with some recent react-native updates the ShortcutsType interface is expected to implement addListener / removeListener.

Everything from the current docs seems to work though