tooot/src/components/analytics.ts

11 lines
265 B
TypeScript
Raw Normal View History

2020-12-30 14:33:33 +01:00
import * as Analytics from 'expo-firebase-analytics'
const analytics = (event: string, params?: { [key: string]: string }) => {
2021-01-01 16:48:16 +01:00
Analytics.logEvent(event, params).catch(
error => {}
// Sentry.Native.captureException(error)
2020-12-30 14:33:33 +01:00
)
}
export default analytics