1
0
mirror of https://github.com/tooot-app/app synced 2025-06-05 22:19:13 +02:00
Files
tooot/src/components/analytics.ts
Zhiyuan Zheng 6aed76ac65 Updates
2021-01-01 16:48:16 +01:00

12 lines
303 B
TypeScript

import * as Analytics from 'expo-firebase-analytics'
import * as Sentry from 'sentry-expo'
const analytics = (event: string, params?: { [key: string]: string }) => {
Analytics.logEvent(event, params).catch(
error => {}
// Sentry.Native.captureException(error)
)
}
export default analytics