connect-transfer-react-native-sdk
Version:
Connect Transfer React Native SDK for Mastercard Open Banking Connect
48 lines (47 loc) • 1.37 kB
JavaScript
;
import 'react-native-gesture-handler';
import { Provider } from 'react-redux';
import { I18nextProvider } from 'react-i18next';
import { GestureHandlerRootView } from 'react-native-gesture-handler';
import store from './redux/store';
import i18next from './locale/i18n';
import MARootContainer from './containers/MARootContainer';
import { jsx as _jsx } from "react/jsx-runtime";
const defaultEventHandlers = {
onInitializeConnectTransfer: () => {
// Intentionally empty function
},
onTermsAndConditionsAccepted: () => {
// Intentionally empty function
},
onLaunchTransferSwitch: () => {
// Intentionally empty function
},
onUserEvent: () => {
// Intentionally empty function
},
onTransferEnd: () => {
// Intentionally empty function
},
onErrorEvent: () => {
// Intentionally empty function
}
};
export const ConnectTransfer = ({
connectTransferUrl = '',
eventHandlers = defaultEventHandlers
}) => {
return /*#__PURE__*/_jsx(GestureHandlerRootView, {
children: /*#__PURE__*/_jsx(I18nextProvider, {
i18n: i18next,
children: /*#__PURE__*/_jsx(Provider, {
store: store,
children: /*#__PURE__*/_jsx(MARootContainer, {
connectTransferUrl: connectTransferUrl,
eventHandlers: eventHandlers
})
})
})
});
};
//# sourceMappingURL=index.js.map