Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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 this issue Jan 30, 2021 · 3 comments

Comments

@hengkx
Copy link

hengkx commented Jan 30, 2021

No description provided.

@MenachemZeivald
Copy link

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

@ivankdev
Copy link

same

@mattijsf
Copy link

mattijsf commented Jun 14, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants