forked from FranzPichardoR/react-native-pax-library
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.js
42 lines (39 loc) · 823 Bytes
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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
import { NativeModules } from "react-native";
const { Pax } = NativeModules;
export default {
FULL_CUT: 0,
PARTIAL_CUT: 1,
printStr(text, cutMode) {
Pax.printStr(text, cutMode === undefined ? 0 : cutMode);
},
openDrawer() {
return Pax.openDrawer();
},
printBitmap(inputValue, smallerDimension) {
Pax.printBitmap(inputValue, smallerDimension);
},
closeMagReader() {
Pax.closeMagReader();
},
magCardIsSwiped() {
return Pax.magCardIsSwiped();
},
openMagReader() {
Pax.openMagReader();
},
readFromMagReader() {
return Pax.readFromMagReader();
},
readExtFromMagReader() {
return Pax.readExtFromMagReader();
},
resetMagReader() {
Pax.resetMagReader();
},
setupMagReader(flag) {
Pax.setupMagReader(flag);
},
pollCardReader(timeout){
return Pax.pollCardReader(timeout);
}
};