react-native-epson-tm
Version:
34 lines (27 loc) • 794 B
Markdown
# react-native-epson-tm
## Getting started
`$ npm install react-native-epson-tm --save`
### Mostly automatic installation
`$ react-native link react-native-epson-tm`
## Usage
```javascript
import { EpsonTm ,Epos2ModelLang ,Epos2PrinterSeries } from 'react-native-epson-tm';
// TODO: What to do with the module?
EpsonTm.initialSetup({
ipAddress: 'TCP:192.168.0.240',
lang: Epos2ModelLang.CHINESE,
printerSeries:Epos2PrinterSeries.EPOS2_TM_M30
}, (error, events) => {
if (error) {
console.error(error);
} else {
this.setState({
status: 'printer connect',
message: events
});
}
});;
```
### V1.0.8
`Added proper error message when issue in printing for android only`
`Added language set in text method`