Skip to content

Commit 1bea095

Browse files
authored
fix(metro): Fixes TS errors with custom Metro configurations in Expo SDK 54 (#5246)
* fix(metro): Fixes TypeScript errors when using custom Metro configurations with Expo SDK 54 * Adds changelog
1 parent 5ee3314 commit 1bea095

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
- 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))
2020
- Removes usage of deprecated `SafeAreaView` ([#5241](https://github.com/getsentry/sentry-react-native/pull/5241))
2121
- Fixes session replay recording for uncaught errors ([#5243](https://github.com/getsentry/sentry-react-native/pull/5243))
22+
- Fixes TypeScript errors when using custom Metro configurations with Expo SDK 54 ([#5246](https://github.com/getsentry/sentry-react-native/pull/5246))
2223

2324
### Dependencies
2425

packages/core/src/js/tools/metroconfig.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ export interface SentryExpoConfigOptions {
4444
/**
4545
* Pass a custom `getDefaultConfig` function to override the default Expo configuration getter.
4646
*/
47-
getDefaultConfig?: typeof getSentryExpoConfig;
47+
getDefaultConfig?: (projectRoot: string, options?: Record<string, unknown>) => Record<string, unknown>;
4848

4949
/**
5050
* For Expo Web, inject `release` and `version` options from `app.json`, the Expo Application Config.

0 commit comments

Comments
 (0)