1 | import { NativeModules, Platform } from 'react-native';
|
2 | export 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 | ;
|
8 | if (NativeModules.TPSStripeManager && Platform.OS === 'ios') {
|
9 |
|
10 |
|
11 | module.exports = NativeModules.TPSStripeManager;
|
12 | }
|
13 | else {
|
14 |
|
15 | module.exports = NativeModules.StripeModule;
|
16 | }
|
17 |
|
\ | No newline at end of file |