You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
561 B

6 years ago
import { Amplitude } from 'expo';
import { Analytics, PageHit } from 'expo-analytics';
Amplitude.initialize('8b7cf19e8eea3cdcf16340f5fbf16330');
const analytics = new Analytics('UA-121673546-1');
let A = function(event) {
console.log('posting analytics event', event);
Amplitude.logEvent(event);
analytics
.hit(new PageHit(event))
.then(() => console.log('success'))
.catch(e => console.log(e.message));
};
A.ENUM = {
INIT: 'INIT',
GOT_NONZERO_BALANCE: 'GOT_NONZERO_BALANCE',
6 years ago
CREATED_WALLET: 'CREATED_WALLET',
6 years ago
};
module.exports = A;