mirror of
https://github.com/tooot-app/app
synced 2025-06-05 22:19:13 +02:00
Add haptics and analytics
This commit is contained in:
10
src/components/analytics.ts
Normal file
10
src/components/analytics.ts
Normal file
@ -0,0 +1,10 @@
|
||||
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
|
Reference in New Issue
Block a user