Skip to content

Commit b52dfe4

Browse files
committed
feat: add expo-insights dependency and update index.tsx for Insights integration
1 parent b57a1bf commit b52dfe4

4 files changed

Lines changed: 32 additions & 9 deletions

File tree

File renamed without changes.

index.tsx

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,18 @@
11
import "./gesture-handler";
2-
3-
import "@expo/metro-runtime"; // Necessary for Fast Refresh on Web
2+
import "@expo/metro-runtime";
43
import { registerRootComponent } from "expo";
5-
6-
// Polyfill for TextEncoder/TextDecoder
74
import "fast-text-encoding";
85

9-
// Importa il navigatore definito in src/navigation/index.tsx
6+
// Importa Insights
7+
import * as Insights from 'expo-insights';
8+
9+
// Importa il tuo App component
1010
import App from "./src/navigation";
1111

12-
// registerRootComponent calls AppRegistry.registerComponent('main', () => App);
13-
// It also ensures that whether you load the app in Expo Go or in a native build,
14-
// the environment is set up appropriately
15-
registerRootComponent(App);
12+
// Opzionale: puoi aggiungere logica condizionale se vuoi
13+
// che Insights tracci solo in produzione (build EAS)
14+
// if (!__DEV__) {
15+
// // Configurazione extra se necessaria in futuro
16+
// }
17+
18+
registerRootComponent(App);

package-lock.json

Lines changed: 19 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: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@
4646
"expo-device": "~7.1.4",
4747
"expo-font": "^13.3.2",
4848
"expo-haptics": "~14.1.4",
49+
"expo-insights": "~0.9.3",
4950
"expo-linear-gradient": "~14.1.5",
5051
"expo-linking": "^7.1.7",
5152
"expo-localization": "^17.0.7",

0 commit comments

Comments
 (0)