react-native-bluetooth-state-manager icon indicating copy to clipboard operation
react-native-bluetooth-state-manager copied to clipboard

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

Open angelos3lex opened this issue 3 years ago • 2 comments

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) => {
...

angelos3lex avatar Jan 04 '22 10:01 angelos3lex

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.

patlux avatar Jan 11 '22 14:01 patlux

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

xaviermarchal avatar Mar 24 '23 14:03 xaviermarchal