react-native-actions-shortcuts icon indicating copy to clipboard operation
react-native-actions-shortcuts copied to clipboard

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

Open hengkx opened this issue 4 years ago • 3 comments

hengkx avatar Jan 30 '21 03:01 hengkx

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

MenachemZeivald avatar Jun 14 '23 12:06 MenachemZeivald

same

ivankdev avatar May 23 '24 16:05 ivankdev

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

mattijsf avatar Jun 14 '24 12:06 mattijsf