@linvix-sistemas/react-native-tectoysunmisdk
Version:
Pacote de comunicação com o hardware de Sunmi/Tectoy Automação, para efetuar impressão, comunicação com LCD entre outros.
31 lines (30 loc) • 1.51 kB
JavaScript
import { NativeModules, Platform } from 'react-native';
import NativeModuleTectToySunmiPrinterSDK from './tectoysunmi-printer';
import NativeModuleTectToySunmiCashBoxSDK from './tectoysunmi-cashbox';
import NativeModuleTectToySunmiScannerSDK from './tectoysunmi-scanner';
import NativeModuleTectToySunmiLCDSDK from './tectoysunmi-lcd';
import NativeModuleTectToySunmiBarcodeSDK from './tectoysunmi-barcode';
import NativeModuleTectToySunmiUtilsSDK from './tectoysunmi-utils';
import NativeModuleTectToySunmiLampadaSDK from './tectoysunmi-lampada';
const LINKING_ERROR = `The package '@linvix-sistemas/react-native-tectoysunmisdk' doesn't seem to be linked. Make sure: \n\n` + Platform.select({
ios: "- You have run 'pod install'\n",
default: ''
}) + '- You rebuilt the app after installing the package\n' + '- You are not using Expo managed workflow\n';
NativeModules.TectoySunmiSdk ? NativeModules.TectoySunmiSdk : new Proxy({}, {
get() {
throw new Error(LINKING_ERROR);
}
});
const NativeModuleTectToySunmiSDK = {
impressora: NativeModuleTectToySunmiPrinterSDK,
gaveta: NativeModuleTectToySunmiCashBoxSDK,
scanner: NativeModuleTectToySunmiScannerSDK,
lcd: NativeModuleTectToySunmiLCDSDK,
lampada: NativeModuleTectToySunmiLampadaSDK,
barcode: NativeModuleTectToySunmiBarcodeSDK,
utils: NativeModuleTectToySunmiUtilsSDK
};
export * from './types/tectoysunmi-types';
export * from './enums/tectoysunmisdk-enum';
export default NativeModuleTectToySunmiSDK;
//# sourceMappingURL=index.js.map