tooot/src/components/analytics.ts

8 lines
206 B
TypeScript
Raw Normal View History

2020-12-30 14:33:33 +01:00
import * as Analytics from 'expo-firebase-analytics'
2021-01-24 02:25:43 +01:00
const analytics = (event: string, params?: { [key: string]: any }) => {
2022-02-14 22:10:07 +01:00
Analytics.logEvent(event, params).catch(() => {})
2020-12-30 14:33:33 +01:00
}
export default analytics