react-native-actions-shortcuts
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
I’m experiencing the same issue. Does anyone have a solution?
same
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