UNPKG

@olo/pay-react-native

Version:
23 lines (21 loc) 920 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = useOloPayNativeModule; var _reactNative = require("react-native"); // Copyright © 2022 Olo Inc. All rights reserved. // This software is made available under the Olo Pay SDK License (See LICENSE.md file) const LINKING_ERROR = `The package '@olo/pay-react-native' 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 OlopaysdkReactNative = _reactNative.NativeModules.OlopaysdkReactNative ? _reactNative.NativeModules.OlopaysdkReactNative : new Proxy({}, { get() { throw new Error(LINKING_ERROR); } }); function useOloPayNativeModule() { return OlopaysdkReactNative; } //# sourceMappingURL=useOloPayNativeModule.js.map