UNPKG

@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.

76 lines (60 loc) 2.68 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _exportNames = {}; exports.default = void 0; var _reactNative = require("react-native"); var _tectoysunmiPrinter = _interopRequireDefault(require("./tectoysunmi-printer")); var _tectoysunmiCashbox = _interopRequireDefault(require("./tectoysunmi-cashbox")); var _tectoysunmiScanner = _interopRequireDefault(require("./tectoysunmi-scanner")); var _tectoysunmiLcd = _interopRequireDefault(require("./tectoysunmi-lcd")); var _tectoysunmiBarcode = _interopRequireDefault(require("./tectoysunmi-barcode")); var _tectoysunmiUtils = _interopRequireDefault(require("./tectoysunmi-utils")); var _tectoysunmiLampada = _interopRequireDefault(require("./tectoysunmi-lampada")); var _tectoysunmiTypes = require("./types/tectoysunmi-types"); Object.keys(_tectoysunmiTypes).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return; if (key in exports && exports[key] === _tectoysunmiTypes[key]) return; Object.defineProperty(exports, key, { enumerable: true, get: function () { return _tectoysunmiTypes[key]; } }); }); var _tectoysunmisdkEnum = require("./enums/tectoysunmisdk-enum"); Object.keys(_tectoysunmisdkEnum).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return; if (key in exports && exports[key] === _tectoysunmisdkEnum[key]) return; Object.defineProperty(exports, key, { enumerable: true, get: function () { return _tectoysunmisdkEnum[key]; } }); }); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } const LINKING_ERROR = `The package '@linvix-sistemas/react-native-tectoysunmisdk' doesn't seem to be linked. Make sure: \n\n` + _reactNative.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'; _reactNative.NativeModules.TectoySunmiSdk ? _reactNative.NativeModules.TectoySunmiSdk : new Proxy({}, { get() { throw new Error(LINKING_ERROR); } }); const NativeModuleTectToySunmiSDK = { impressora: _tectoysunmiPrinter.default, gaveta: _tectoysunmiCashbox.default, scanner: _tectoysunmiScanner.default, lcd: _tectoysunmiLcd.default, lampada: _tectoysunmiLampada.default, barcode: _tectoysunmiBarcode.default, utils: _tectoysunmiUtils.default }; var _default = NativeModuleTectToySunmiSDK; exports.default = _default; //# sourceMappingURL=index.js.map