diff --git a/CHANGELOG.md b/CHANGELOG.md index 8f113511ad..2f06345fc6 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 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.