2018-07-06 17:41:48 +02:00
|
|
|
import { Amplitude } from 'expo';
|
|
|
|
import { Analytics, PageHit } from 'expo-analytics';
|
|
|
|
|
|
|
|
Amplitude.initialize('8b7cf19e8eea3cdcf16340f5fbf16330');
|
|
|
|
const analytics = new Analytics('UA-121673546-1');
|
|
|
|
|
|
|
|
let A = function(event) {
|
|
|
|
Amplitude.logEvent(event);
|
2018-07-12 01:06:50 +02:00
|
|
|
analytics.hit(new PageHit(event));
|
|
|
|
// .then(() => console.log('success'))
|
|
|
|
// .catch(e => console.log(e.message));
|
2018-07-06 17:41:48 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
A.ENUM = {
|
|
|
|
INIT: 'INIT',
|
|
|
|
GOT_NONZERO_BALANCE: 'GOT_NONZERO_BALANCE',
|
2018-07-06 18:28:04 +02:00
|
|
|
CREATED_WALLET: 'CREATED_WALLET',
|
2018-09-04 00:44:45 +02:00
|
|
|
CREATED_LIGHTNING_WALLET: 'CREATED_LIGHTNING_WALLET',
|
2018-07-06 17:41:48 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
module.exports = A;
|