januslo / react-native-bluetooth-escpos-printer

React-Native plugin for the bluetooth ESC/POS & TSC printers.
MIT License
361 stars 420 forks source link

How can I disconnect device #99

Open ozdemirburakk opened 4 years ago

ozdemirburakk commented 4 years ago

I can't found this. I want to disconnect device . How can i do this ?

ajiehatajie commented 4 years ago

yarn add react-native-bluetooth-escpos-printer@git+https://github.com/januslo/react-native-bluetooth-escpos-printer

https://github.com/januslo/react-native-bluetooth-escpos-printer/commit/31586c6445f1edd5f19fff8287d37301a3bb5796

or

https://github.com/januslo/react-native-bluetooth-escpos-printer/blob/master/android/src/main/java/cn/jystudio/bluetooth/RNBluetoothManagerModule.java BluetoothManager.unpaire(row.address).then()