diff --git a/dev-packages/e2e-tests/patch-scripts/rn.patch.metro.config.js b/dev-packages/e2e-tests/patch-scripts/rn.patch.metro.config.js index ea648ec449..2efefa09ca 100755 --- a/dev-packages/e2e-tests/patch-scripts/rn.patch.metro.config.js +++ b/dev-packages/e2e-tests/patch-scripts/rn.patch.metro.config.js @@ -20,7 +20,7 @@ const importSerializer = "const { withSentryConfig } = require('@sentry/react-na let config = fs.readFileSync(configFilePath, 'utf8').split('\n'); -const sentryOptions = '{ annotateReactComponents: true }'; +const sentryOptions = '{ annotateReactComponents: true, optionsFile: false }'; const isPatched = config.includes(importSerializer); if (!isPatched) {