From d2f635c379a26f8bf47e59dcb602d1e8e1f1f2ea Mon Sep 17 00:00:00 2001 From: Antonis Lilis Date: Wed, 8 Oct 2025 13:43:18 +0200 Subject: [PATCH 1/2] fix(metro): Fixes TypeScript errors when using custom Metro configurations with Expo SDK 54 --- packages/core/src/js/tools/metroconfig.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/core/src/js/tools/metroconfig.ts b/packages/core/src/js/tools/metroconfig.ts index 64897eea1b..411af5565b 100644 --- a/packages/core/src/js/tools/metroconfig.ts +++ b/packages/core/src/js/tools/metroconfig.ts @@ -44,7 +44,7 @@ export interface SentryExpoConfigOptions { /** * Pass a custom `getDefaultConfig` function to override the default Expo configuration getter. */ - getDefaultConfig?: typeof getSentryExpoConfig; + getDefaultConfig?: (projectRoot: string, options?: Record) => Record; /** * For Expo Web, inject `release` and `version` options from `app.json`, the Expo Application Config. From 1c96a1f629d1a2bd32d4086241b76ac18d1a6cef Mon Sep 17 00:00:00 2001 From: Antonis Lilis Date: Wed, 8 Oct 2025 13:47:42 +0200 Subject: [PATCH 2/2] Adds changelog --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 358d69468c..23fefad696 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -19,6 +19,7 @@ - Fixes the issue with changing immutable metadata structure in the contructor of `ReactNativeClient`. This structure is getting re-created instead of being modified to ensure IP address is only inferred by Relay if `sendDefaultPii` is `true` ([#5202](https://github.com/getsentry/sentry-react-native/pull/5202)) - Removes usage of deprecated `SafeAreaView` ([#5241](https://github.com/getsentry/sentry-react-native/pull/5241)) - Fixes session replay recording for uncaught errors ([#5243](https://github.com/getsentry/sentry-react-native/pull/5243)) +- Fixes TypeScript errors when using custom Metro configurations with Expo SDK 54 ([#5246](https://github.com/getsentry/sentry-react-native/pull/5246)) ### Dependencies