react-native-bootpay-api 1.4.4 → 4.0.0-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/src/useBootpay.js DELETED
@@ -1,51 +0,0 @@
1
- // import { useCallback } from 'react';
2
- // import BootpayAnalytics from './BootpayAnalytics';
3
- // import BootpayWebView from './BootpayWebView';
4
-
5
- // export const useBootpay = () => {
6
- // const bootpay = useRef(new BootpayWebView());
7
- // // const anlaytics = useRef(new BootpayAnalytics());
8
-
9
- // const [bootpayEvents, setBootpayEvents] = useState([]);
10
-
11
- // const request = useCallback((payload, items, user, extra) => {
12
- // console.log('use call reqeust');
13
- // return bootpay.current.request(payload, items, user, extra);
14
- // }, []);
15
-
16
- // const dismiss = useCallback(() => {
17
- // console.log('use call dismiss');
18
- // return bootpay.current.dismiss();
19
- // }, []);
20
-
21
- // const transactionConfirm = useCallback((data) => {
22
- // console.log('use call transactionConfirm');
23
- // return bootpay.current.transactionConfirm(data);
24
- // }, []);
25
-
26
- // const userTrace = useCallback(() => {
27
-
28
- // console.log('user trace click');
29
- // BootpayAnalytics.userTrace();
30
- // // return anlaytics.current.userTrace();
31
- // }, []);
32
-
33
- // const pageTrace = useCallback(() => {
34
- // BootpayAnalytics.pageTrace();
35
- // // return anlaytics.current.pageTrace();
36
- // }, []);
37
-
38
- // return [
39
- // {
40
- // bootpayEvents,
41
- // },
42
- // {
43
- // request,
44
- // transactionConfirm,
45
- // dismiss,
46
- // text,
47
- // userTrace,
48
- // pageTrace
49
- // },
50
- // ];
51
- // }