The closeConn method in the RNBLEPrinterModule, RNNetPrinterModule, and RNUSBPrinterModule has been refactored to handle the case where the adapter is null. If the adapter is null, it is initialized before closing the connection. This change ensures that the closeConn method works correctly even when the adapter is not yet instantiated.
The closeConn method in the RNBLEPrinterModule, RNNetPrinterModule, and RNUSBPrinterModule has been refactored to handle the case where the adapter is null. If the adapter is null, it is initialized before closing the connection. This change ensures that the closeConn method works correctly even when the adapter is not yet instantiated.