From a87439c37cc086d0929605c76e2594eeb5b0f7d0 Mon Sep 17 00:00:00 2001 From: danilo neves cruz Date: Fri, 18 Oct 2024 17:54:59 -0300 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20app:=20polyfill=20before=20expo=20r?= =?UTF-8?q?outer=20entry?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 2 +- src/app/_layout.tsx | 2 -- src/index.js | 2 ++ tsconfig.json | 1 + 4 files changed, 4 insertions(+), 3 deletions(-) create mode 100644 src/index.js diff --git a/package.json b/package.json index c07c836f..c1938d7c 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "@exactly/mobile", "version": "0.0.1", - "main": "expo-router/entry", + "main": "./src/index.js", "scripts": { "start": "expo start", "android": "expo run:android", diff --git a/src/app/_layout.tsx b/src/app/_layout.tsx index eb53a080..952347e0 100644 --- a/src/app/_layout.tsx +++ b/src/app/_layout.tsx @@ -1,5 +1,3 @@ -import "../utils/polyfill"; - import release from "@exactly/common/generated/release"; import { init, mobileReplayIntegration, reactNavigationIntegration, wrap } from "@sentry/react-native"; import { ReactQueryDevtools } from "@tanstack/react-query-devtools"; diff --git a/src/index.js b/src/index.js new file mode 100644 index 00000000..918be6cd --- /dev/null +++ b/src/index.js @@ -0,0 +1,2 @@ +import "./utils/polyfill"; +import "expo-router/entry"; diff --git a/tsconfig.json b/tsconfig.json index a83bea9a..37ac29af 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -17,6 +17,7 @@ "expo-env.d.ts", "src/**/*.ts", "src/**/*.tsx", + "src/index.js", "tamagui.config.ts" ] }