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 | const stripeModule = NativeModules.TPSStripeManager || NativeModules.StripeModule;
|
8 | export default stripeModule;
|
9 |
|
\ | No newline at end of file |