UNPKG

1.26 kBSource Map (JSON)View Raw
1{"version":3,"file":"Payments.js","sourceRoot":"","sources":["../src/Payments.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAEvD,MAAM,UAAU,UAAU;IACxB,IAAI,CAAC,aAAa,CAAC,gBAAgB,IAAI,QAAQ,CAAC,EAAE,KAAK,KAAK,EAAE;QAC5D,OAAO,CAAC,IAAI,CACV,sLAAsL,CACvL,CAAC;KACH;AACH,CAAC;AAAA,CAAC;AAEF,IAAI,aAAa,CAAC,gBAAgB,IAAI,QAAQ,CAAC,EAAE,KAAK,KAAK,EAAE;IAC3D,iGAAiG;IACjG,2BAA2B;IAC3B,MAAM,CAAC,OAAO,GAAG,aAAa,CAAC,gBAAgB,CAAC;CACjD;KAAM;IACL,aAAa;IACb,MAAM,CAAC,OAAO,GAAG,aAAa,CAAC,YAAY,CAAC;CAC7C","sourcesContent":["import { NativeModules, Platform } from 'react-native';\n\nexport function initialize() {\n if (!NativeModules.TPSStripeManager && Platform.OS === 'ios') {\n console.warn(\n `We temporarily moved the Expo Payments API to ExpoKit. Please see the SDK 20 release notes for more information: https://blog.expo.io/expo-sdk-v20-0-0-is-now-available-79f84232a9d1`\n );\n }\n};\n\nif (NativeModules.TPSStripeManager && Platform.OS === 'ios') {\n // @ts-ignore fix this by turning these export assigments into export statements and use separate\n // .ios and .android files \n module.exports = NativeModules.TPSStripeManager;\n} else {\n // @ts-ignore\n module.exports = NativeModules.StripeModule;\n}\n"]}
\No newline at end of file