-
-
Save souhe/72646bda510f8546a2282e11b28150eb to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// finding: | |
LabelPrinter.findPrinter( | |
'usb', | |
() => { /* handle printer found */ }, | |
() => { /* handle printer found finish */ }, | |
() => { /* handle printer error */ }, | |
); | |
// printing: | |
LabelPrinter.printTest() | |
.then(() => this.props.navigator.showLocalAlert('Test successful', successAlertStyle)) | |
.catch(() => this.props.navigator.showLocalAlert('Error occurred while printing test', errorAlertStyle)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment