UNPKG

expo-esc-pos-utils

Version:

Expo module for ESC/POS printer utilities, supporting image printing and text formatting

14 lines (10 loc) 515 B
import { NativeModule, requireNativeModule } from 'expo'; import { ExpoEscPosUtilsModuleEvents } from './ExpoEscPosUtils.types'; declare class ExpoEscPosUtilsModule extends NativeModule<ExpoEscPosUtilsModuleEvents> { PI: number; hello(): string; setValueAsync(value: string): Promise<void>; convertBase64ToGsV0Data(base64: string, width: number): Promise<number[]>; } // This call loads the native module object from the JSI. export default requireNativeModule<ExpoEscPosUtilsModule>('ExpoEscPosUtils');