@reeq/react-native-passkit
Version:
React native wrapper over google PayClient (for android) and PassKit (for iOS). Contains google and apple buttons
20 lines (19 loc) • 877 B
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.PasskitEventEmitter = exports.Passkit = void 0;
var _reactNative = require("react-native");
const LINKING_ERROR = `The package '@reeq/react-native-passkit' 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 Go\n';
const Passkit = _reactNative.NativeModules.PasskitModule ? _reactNative.NativeModules.PasskitModule : new Proxy({}, {
get() {
throw new Error(LINKING_ERROR);
}
});
exports.Passkit = Passkit;
const PasskitEventEmitter = new _reactNative.NativeEventEmitter(_reactNative.NativeModules.PasskitModule);
exports.PasskitEventEmitter = PasskitEventEmitter;
//# sourceMappingURL=passkit-module-native.js.map