From be15fbfb898511e20b421d786f38476a5c34b4d2 Mon Sep 17 00:00:00 2001 From: Samuel Newman Date: Mon, 13 Jul 2026 18:16:01 +0300 Subject: [PATCH] enable annotating react components --- metro.config.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/metro.config.ts b/metro.config.ts index 64701df27d..79adfd4f8a 100644 --- a/metro.config.ts +++ b/metro.config.ts @@ -6,7 +6,9 @@ import {getSentryExpoConfig} from '@sentry/react-native/metro.js' const config = getSentryExpoConfig(import.meta.dirname, { // TODO: confirm this doesn't break anything when we switch to metro web includeWebReplay: true, - + annotateReactComponents: { + textComponentNames: ['Text', 'ButtonText'], + }, getDefaultConfig: (projectRoot, options) => { const config = getDefaultConfig(projectRoot, options)