1.0.3 • Published 7 years ago
react-native-printer-bluetooth v1.0.3
欢迎使用react-native蓝牙打印插件
1. 插件介绍
此插件供好孩子内部使用,如果需要在其他场景需要修改打印模板,此插件并不是通过插件。插件支持自动连接已配对的蓝牙打印机,通过CPCL指令调用打印机进行打印。
2.安装
2.1 下载
npm i react-native-smile-pay --save
2.2 安装
react-native link react-native-smile-pay
或者
rnpm link react-native-smile-pay
3.API
方法 | 类型 | 描述 |
---|---|---|
function | 打印方法,传递需要打印的json报文 |
4. 使用示例
import BTPrinter from 'react-native-printer-bluetooth'
...
BTPrinter.print(this.info);