kenjdavidson / react-native-bluetooth-classic

⚛ Bluetooth classic Android(Bluetooth)/IOS(ExternalAccessory) module for serial communication
https://kenjdavidson.github.io/react-native-bluetooth-classic
MIT License
250 stars 94 forks source link

Fix unpairDevice calling cancelDiscovery #253

Closed chrisdueck closed 1 year ago

chrisdueck commented 1 year ago

My proposal to fix https://github.com/kenjdavidson/react-native-bluetooth-classic/issues/252

It seems that unpairDevice should be calling this._nativeModule.unpairDevice(address) rather than this._nativeModule.cancelDiscovery().