Skip to content
This repository has been archived by the owner on Jun 5, 2023. It is now read-only.

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

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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants