Surile / react-native-sunmi-printer

商米内置打印机
MIT License
44 stars 28 forks source link

Improve compatibility with non-Sunmi devices #3

Closed alexsegura closed 2 years ago

alexsegura commented 2 years ago

Hi,

I would like to use this library also in non-Sunmi devices. Currently there's no easy way to check if the device is a Sunmi, without triggering an uncatchable error.

I found the hasPrinter method which seems perfect for this.

Surile commented 2 years ago

@alexsegura ok,tks

alexsegura commented 2 years ago

@Surile thanks! Can you make a 1.5.2 release?

Surile commented 2 years ago

@alexsegura ok

Surile commented 2 years ago

@alexsegura Has been released!

Commit message convention

alexsegura commented 2 years ago

@Surile thank you so much 😍