Skip to content

Commit e402b88

Browse files
Update component-names.mdx
1 parent 74e6bc5 commit e402b88

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

docs/platforms/react-native/integrations/component-names.mdx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,10 @@ The Sentry browser SDK will pick off the value from these `data` attributes and
7373

7474
## Troubleshooting
7575

76-
- Use `export SENTRY_LOG_LEVEL=debug` to enable debug logs. When generating the JS Bundle, you should see logs about the Sentry Metro Plugin saving and loading the default Babel transformer.
76+
- If component names are missing in the reported events, check if the annotations are present in the JS bundle generated by Metro. You can text search in the bundle for the `data-sentry-component` key.
77+
- To add the annotations `config.transformer.babelTransformerPath` is required to be set in the Metro config before calling `withSentryConfig`.
78+
- Function `getSentryExpoConfig` returns the configuration with the Sentry Babel Transformer set, do not overwrite `config.transformer.babelTransformerPath`.
79+
- Use `export SENTRY_LOG_LEVEL=debug` to enable debug logs and observe if Sentry detected the default transformer and if Sentry Babel Transformer was executed.
7780

7881
## Next Steps:
7982

0 commit comments

Comments
 (0)