|
@@ -1,27 +1,27 @@
|
1
|
|
-# react-native-printer
|
|
1
|
+# react-native-printer-mirfalahtech
|
2
|
2
|
|
3
|
3
|
A React Native Library to support USB/BLE/Net printer for Android platform
|
4
|
4
|
|
5
|
5
|
## Installation
|
6
|
6
|
|
7
|
7
|
```
|
8
|
|
-npm install react-native-printer --save
|
|
8
|
+npm install react-native-printer-mirfalahtech --save
|
9
|
9
|
|
10
|
10
|
```
|
11
|
11
|
|
12
|
12
|
## Integrate module
|
13
|
13
|
|
14
|
|
-To integrate `react-native-printer` with the rest of your react app just execute:
|
|
14
|
+To integrate `react-native-printer-mirfalahtech` with the rest of your react app just execute:
|
15
|
15
|
|
16
|
16
|
```
|
17
|
|
-react-native link react-native-printer
|
|
17
|
+react-native link react-native-printer-mirfalahtech
|
18
|
18
|
|
19
|
19
|
```
|
20
|
20
|
|
21
|
21
|
## Usage
|
22
|
22
|
|
23
|
23
|
```javascript
|
24
|
|
-import { USBPrinter, NetPrinter, BLEPrinter } from 'react-native-printer';
|
|
24
|
+import { USBPrinter, NetPrinter, BLEPrinter } from 'react-native-printer-mirfalahtech';
|
25
|
25
|
|
26
|
26
|
USBPrinter.printText('<C>这是一个测试打印</C>')
|
27
|
27
|
USBPrinter.printBill("<C>这是一段打印测试文字</C>")
|