"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.confirmPayment = confirmPayment;
exports.default = void 0;

var _reactNative = require("react-native");

const LINKING_ERROR = `The package 'react-native-atom-payment' 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 AtomPayment = _reactNative.NativeModules.AtomPayment ? _reactNative.NativeModules.AtomPayment : new Proxy({}, {
  get() {
    throw new Error(LINKING_ERROR);
  }

});

function confirmPayment(transactionDetail, callback) {
  return AtomPayment.goForAtomPayment(transactionDetail, callback);
}

var _default = AtomPayment;
exports.default = _default;
//# sourceMappingURL=index.js.map