Skip to content

Commit e23a4ef

Browse files
authored
Merge pull request #52 from ansari-project/integrate-vercel-analytics
Integrate Vercel analytics
2 parents d3ed75a + 66a636e commit e23a4ef

File tree

3 files changed

+45
-2
lines changed

3 files changed

+45
-2
lines changed

package-lock.json

Lines changed: 39 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
"@react-navigation/native": "^7.0.14",
1515
"@reduxjs/toolkit": "^2.1.0",
1616
"@sentry/react-native": "~6.9.1",
17+
"@vercel/analytics": "^1.5.0",
1718
"dotenv": "^16.4.5",
1819
"expo": "~52.0.38",
1920
"expo-application": "~6.0.2",
@@ -29,6 +30,7 @@
2930
"expo-screen-orientation": "~8.0.4",
3031
"expo-splash-screen": "~0.29.22",
3132
"expo-status-bar": "~2.0.1",
33+
"expo-store-review": "~8.0.1",
3234
"expo-symbols": "~0.2.1",
3335
"expo-system-ui": "~4.0.8",
3436
"expo-updates": "~0.27.3",
@@ -58,8 +60,7 @@
5860
"redux-first-history": "^5.2.0",
5961
"redux-thunk": "^3.1.0",
6062
"web-vitals": "^2.1.4",
61-
"yup": "^1.3.3",
62-
"expo-store-review": "~8.0.1"
63+
"yup": "^1.3.3"
6364
},
6465
"scripts": {
6566
"start": "expo start",

src/components/RootContainer.web.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
import React, { useEffect } from 'react'
22
import { i18n } from '@/i18n'
33
import { View } from 'react-native'
4+
import { inject } from '@vercel/analytics'
5+
6+
inject()
47

58
export type Props = {
69
children: React.ReactNode

0 commit comments

Comments
 (0)