Skip to content

Property 'addEventListener' does not exist on type 'typeof import("react-native-bluetooth-state-manager")'.ts(2339) #57

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

Open
angelos3lex opened this issue Jan 4, 2022 · 2 comments

Comments

@angelos3lex
Copy link

Types are not fully implemented i think ^

Also:

Property 'EVENT_BLUETOOTH_STATE_CHANGE' does not exist on type 'typeof import("react-native-bluetooth-state-manager")

My usage is like this:

    BluetoothStateManager.addEventListener(BluetoothStateManager.EVENT_BLUETOOTH_STATE_CHANGE, (state: BluetoothState) => {
...

@patlux
Copy link
Owner

patlux commented Jan 11, 2022

Hi @angelos3lex, you're right. It's on my TODO to rewrite all in Typescript. Until then feel free to send a Pull Request to improve the current implementation.

@xaviermarchal
Copy link

@patlux is it still on your to do? ^^

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

3 participants