UNPKG

735 BJavaScriptView Raw
1import { NativeModules, Platform } from 'react-native';
2export function initialize() {
3 if (!NativeModules.TPSStripeManager && Platform.OS === 'ios') {
4 console.warn(`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`);
5 }
6}
7;
8if (NativeModules.TPSStripeManager && Platform.OS === 'ios') {
9 // @ts-ignore fix this by turning these export assigments into export statements and use separate
10 // .ios and .android files
11 module.exports = NativeModules.TPSStripeManager;
12}
13else {
14 // @ts-ignore
15 module.exports = NativeModules.StripeModule;
16}
17//# sourceMappingURL=Payments.js.map
\No newline at end of file