react-native-xprinter-thermal-ble
Version:
Portable xprinter native module for react-native
14 lines (13 loc) • 575 B
TypeScript
export interface IXprinterThermal {
isConnected: () => Promise<boolean>;
rebindService: () => Promise<any>;
connectNet: (ip: string, port: number) => Promise<void>;
connectBle: (bleAddress: string) => Promise<void>;
disconnect: () => Promise<void>;
addEmptyLine: () => void;
addText: (content: string) => void;
addBarcode: (content: string, width: number, height: number) => void;
addQRcode: (content: string, width: number) => void;
print: () => Promise<string>;
}
export declare const XprinterThermal: IXprinterThermal;