UNPKG

@lmapp/react-native-cloudpayments

Version:

πŸš€ ΠœΠΎΡ‰Π½Ρ‹ΠΉ SDK для ΠΈΠ½Ρ‚Π΅Π³Ρ€Π°Ρ†ΠΈΠΈ ΠΏΠ»Π°Ρ‚Π΅ΠΆΠ΅ΠΉ CloudPayments Π² React Native. ΠŸΠΎΠ΄Π΄Π΅Ρ€ΠΆΠΊΠ° Apple Pay, Google Pay, Π‘Π‘ΠŸ, банковских ΠΊΠ°Ρ€Ρ‚. Полная типизация TypeScript. iOS 12+ ΠΈ Android 21+

31 lines (25 loc) β€’ 1.04 kB
"use strict"; import { NativeModules, Platform } from 'react-native'; const LINKING_ERROR = `The package '@lmapp/react-native-cloudpayments' doesn't seem to be linked. Make sure: \n\n` + 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 CloudpaymentsSdk = NativeModules.CloudpaymentsSdk ? NativeModules.CloudpaymentsSdk : new Proxy({}, { get() { throw new Error(LINKING_ERROR); } }); // Экспорт сСрвисов export { PaymentService, CardService } from "./services/index.js"; // Экспорт Ρ‚ΠΈΠΏΠΎΠ² export * from "./types/index.js"; // Экспорт Π΅Π½ΡƒΠΌΠΎΠ² ΠΊΠ°ΠΊ Π·Π½Π°Ρ‡Π΅Π½ΠΈΠΉ export * from "./types/enums.js"; // Экспорт событий export { eventEmitter } from "./events/index.js"; // Экспорт Ρ…ΡƒΠΊΠΎΠ² export * from "./hooks/index.js"; export const init = publicId => { return CloudpaymentsSdk.initialize(publicId); }; //# sourceMappingURL=index.js.map