UNPKG

react-native-payment-card-scanner

Version:

Iranian Bank Card Scanner for React Native - Scan Iranian debit/credit cards with OCR technology. Supports Android & iOS with Persian/Farsi text display.

22 lines (21 loc) 914 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; exports.scan = scan; var _reactNative = require("react-native"); const LINKING_ERROR = `The package 'react-native-payment-card-scanner' 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'; const PaymentCardScanner = _reactNative.NativeModules.PaymentCardScanner ? _reactNative.NativeModules.PaymentCardScanner : new Proxy({}, { get() { throw new Error(LINKING_ERROR); } }); function scan(topText, bottomText, topTextFont, bottomTextFont) { return PaymentCardScanner.scan(topText, bottomText, topTextFont, bottomTextFont); } var _default = exports.default = PaymentCardScanner; //# sourceMappingURL=index.js.map