-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathApp.tsx
More file actions
29 lines (26 loc) · 764 Bytes
/
App.tsx
File metadata and controls
29 lines (26 loc) · 764 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
import React from 'react';
import {SafeAreaView} from 'react-native';
import {CardScreen} from './src/CardScreen/CardScreen';
import {
FrameCardTokenizationFailedEvent,
FrameCardTokenizedEvent,
} from './src/CardScreen/types/types';
import {PUBLIC_KEY} from './src/utils/constants';
const App = (): React.JSX.Element => {
return (
<SafeAreaView>
<CardScreen
checkoutKey={PUBLIC_KEY}
cardTokenized={function (e: FrameCardTokenizedEvent): void {
console.log('Card tokenized', e);
}}
cardTokenizationFailed={function (
e: FrameCardTokenizationFailedEvent,
): void {
console.log('Card tokenization failed', e);
}}
/>
</SafeAreaView>
);
};
export default App;