react-native-printer-imin 0.10.4 → 0.10.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md
CHANGED
|
@@ -1,45 +1,108 @@
|
|
|
1
|
-
# react-native-printer-imin
|
|
2
|
-
|
|
3
|
-
Native Module For iMin Printer SDK Plugin
|
|
4
|
-
|
|
5
|
-
## Installation
|
|
6
|
-
|
|
7
|
-
```sh
|
|
8
|
-
npm install react-native-printer-imin
|
|
9
|
-
```
|
|
10
|
-
|
|
11
|
-
## Usage
|
|
12
|
-
|
|
13
|
-
```js
|
|
14
|
-
import PrinterImin from 'react-native-printer-imin';
|
|
15
|
-
|
|
16
|
-
//
|
|
17
|
-
PrinterImin.initPrinter();
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
1
|
+
# react-native-printer-imin
|
|
2
|
+
|
|
3
|
+
Native Module For iMin Printer SDK Plugin
|
|
4
|
+
|
|
5
|
+
## Installation
|
|
6
|
+
|
|
7
|
+
```sh
|
|
8
|
+
npm install react-native-printer-imin
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Usage
|
|
12
|
+
|
|
13
|
+
```js
|
|
14
|
+
import PrinterImin from 'react-native-printer-imin';
|
|
15
|
+
|
|
16
|
+
// Initialize printer
|
|
17
|
+
await PrinterImin.initPrinter();
|
|
18
|
+
|
|
19
|
+
// Check printer status
|
|
20
|
+
const status = await PrinterImin.getPrinterStatus();
|
|
21
|
+
console.log(status);
|
|
22
|
+
|
|
23
|
+
// Print text
|
|
24
|
+
await PrinterImin.printText('Hello World');
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
## Documentation
|
|
28
|
+
|
|
29
|
+
📚 **Complete documentation is available in multiple languages:**
|
|
30
|
+
|
|
31
|
+
### 🇨🇳 中文文档 (Chinese Documentation)
|
|
32
|
+
|
|
33
|
+
| Document | Description |
|
|
34
|
+
|----------|-------------|
|
|
35
|
+
| [📖 文档中心](./docs/README.md) | 主要文档中心 |
|
|
36
|
+
| [🚀 快速开始](./docs/quick-start.md) | 5分钟快速上手 |
|
|
37
|
+
| [⚙️ 安装指南](./docs/installation-guide.md) | 详细安装配置说明 |
|
|
38
|
+
| [📋 API参考](./docs/api-reference.md) | 完整API文档 |
|
|
39
|
+
| [👨💻 开发者指南](./docs/developer-guide.md) | 深入开发指导 |
|
|
40
|
+
| [💡 使用示例](./docs/examples.md) | 实际应用场景示例 |
|
|
41
|
+
| [🔄 迁移指南](./docs/migration-guide.md) | 版本升级指导 |
|
|
42
|
+
| [❓ 常见问题](./docs/faq.md) | 常见问题解答 |
|
|
43
|
+
|
|
44
|
+
### 🇺🇸 English Documentation
|
|
45
|
+
|
|
46
|
+
| Document | Description |
|
|
47
|
+
|----------|-------------|
|
|
48
|
+
| [📖 Documentation Center](./docs/en/README.md) | Main documentation hub |
|
|
49
|
+
| [🚀 Quick Start](./docs/en/quick-start.md) | Get started in 5 minutes |
|
|
50
|
+
| [⚙️ Installation Guide](./docs/en/installation-guide.md) | Detailed setup instructions |
|
|
51
|
+
| [📋 API Reference](./docs/en/api-reference.md) | Complete API documentation |
|
|
52
|
+
| [👨💻 Developer Guide](./docs/en/developer-guide.md) | Advanced development guide |
|
|
53
|
+
| [❓ FAQ](./docs/en/faq.md) | Frequently asked questions |
|
|
54
|
+
|
|
55
|
+
### Quick Links
|
|
56
|
+
|
|
57
|
+
- **Example App**: [example/](./example/)
|
|
58
|
+
- **GitHub Issues**: [Report Issues](https://github.com/iminsoftware/react-native-printer-imin/issues)
|
|
59
|
+
|
|
60
|
+
## Features
|
|
61
|
+
|
|
62
|
+
- ✅ **Text Printing** - Multiple fonts, styles, and alignments
|
|
63
|
+
- ✅ **Image Printing** - URL and local images with size control
|
|
64
|
+
- ✅ **QR Code Printing** - Customizable size, error correction, and alignment
|
|
65
|
+
- ✅ **Barcode Printing** - Multiple barcode formats supported
|
|
66
|
+
- ✅ **Table Printing** - Flexible column layouts
|
|
67
|
+
- ✅ **Label Printing** - SDK 2.0 exclusive feature
|
|
68
|
+
- ✅ **Device Control** - Paper cutting, cash drawer, status monitoring
|
|
69
|
+
|
|
70
|
+
## Supported Devices
|
|
71
|
+
|
|
72
|
+
### Handheld Finance Series
|
|
73
|
+
- M2-202, M2-203, M2 Pro
|
|
74
|
+
- Swift 1, Swift 2, Swift 2 Pro, Swift 2 Ultra, Swift 1 Pro
|
|
75
|
+
|
|
76
|
+
### Tablet Terminal Series
|
|
77
|
+
- M2 Max, D1, D1 Pro
|
|
78
|
+
- Falcon 1, Swan 2, Falcon 2, Falcon 2 Pro, Falcon 1 Pro, Swan 2 Pro, Heron 1, Heron 1 mini
|
|
79
|
+
|
|
80
|
+
### Desktop POS Equipment
|
|
81
|
+
- D4, Swan 2, Falcon 2
|
|
82
|
+
|
|
83
|
+
## Contributing
|
|
84
|
+
|
|
85
|
+
See the [contributing guide](CONTRIBUTING.md) to learn how to contribute to the repository and the development workflow.
|
|
86
|
+
|
|
87
|
+
## License
|
|
88
|
+
|
|
89
|
+
MIT
|
|
90
|
+
|
|
91
|
+
---
|
|
92
|
+
|
|
93
|
+
Made with [create-react-native-library](https://github.com/callstack/react-native-builder-bob)
|
|
94
|
+
# 更新0.10.7 版本 Updated to version 0.10.5
|
|
95
|
+
更新内容 : 修复已知bug Update details: fix bug
|
|
96
|
+
# 更新0.10.5 版本 Updated to version 0.10.5
|
|
97
|
+
更新内容 : 适配A15 Update details: Adapted for A15
|
|
98
|
+
# 更新0.10.4版本 Updated to version 0.10.4
|
|
99
|
+
更新内容: 更新版本号 Update details: Updated version number
|
|
100
|
+
# 更新0.10.3版本 Updated to version 0.10.3
|
|
101
|
+
fix: adapt .so file for android 16k page, update SDK to iminPrinterSDK-15_V1.3.2_2505261539.jar
|
|
102
|
+
更新内容:fix: all->适配.so文件安卓16k页面,更新SDK:iminPrinterSDK-15_V1.3.2_2505261539.jar
|
|
103
|
+
# 更新版本号0.10.2
|
|
104
|
+
# 更新0.10.1版本
|
|
105
|
+
# 新增标签打印api
|
|
106
|
+
# 编辑 package.json 文件,将 "version": "0.8.0" 更新为 "version": "0.9.0"
|
|
107
|
+
|
|
108
|
+
|
|
Binary file
|
|
@@ -1,3 +1,6 @@
|
|
|
1
1
|
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
|
2
2
|
package="com.printerimin">
|
|
3
|
-
|
|
3
|
+
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE"/>
|
|
4
|
+
<uses-permission android:name="android.permission.CHANGE_WIFI_STATE"/>
|
|
5
|
+
|
|
6
|
+
</manifest>
|