OptionalappThe minimum amount of time an app should be unresponsive to be classified as an App Hanging. The actual amount may be a little longer. Avoid using values lower than 100ms, which may cause a lot of app hangs events being transmitted. Value should be in seconds.
iOS only
OptionalappOptional prefix to add while rewriting frames
OptionalattachWhen enabled and a user experiences an error, Sentry provides the ability to take a screenshot and include it as an attachment.
OptionalattachWhen enabled, all the threads are automatically attached to all logged events on Android
OptionalattachWhen enabled Sentry includes the current view hierarchy in the error attachments.
OptionalautoInitializes the native SDK on init.
Set this to false if you have an existing native SDK and don't want to re-initialize.
NOTE: Be careful and only use this if you know what you are doing. If you use this flag, make sure a native SDK is running before the JS Engine initializes or events might not be captured. Also, make sure the DSN on both the React Native side and the native side are the same one. We strongly recommend checking the documentation if you need to use this.
OptionalbreadcrumbsOptionalcolnooffset applied to errors colno
Optionaldisablednative integrations to disable.
OptionalenableWhen enabled, the SDK tracks when the application stops responding for a specific amount of
time defined by the appHangTimeoutInterval option.
iOS only
OptionalenableEnable auto performance tracking by default.
OptionalenableShould sessions be tracked to Sentry Health or not. Default to true!
OptionalenableWhen enabled, Sentry will capture failed XHR/Fetch requests. This option also enabled HTTP Errors on iOS. Sentry Android Gradle Plugin is needed to capture HTTP Errors on Android.
OptionalenableEnables native transport + device info + offline caching.
Be careful, disabling this also breaks automatic release setting.
This means you have to manage setting the release yourself.
Defaults to true.
OptionalenableEnables native crashHandling. This only works if enableNative is true.
Defaults to true.
OptionalenableShould the native nagger alert be shown or not.
OptionalenableEnable NDK on Android
OptionalenableEnable scope sync from Java to NDK on Android
Only has an effect if enableNdk is true.
OptionalenableThis option will enable forwarding captured Sentry events to Spotlight.
More details: https://spotlightjs.com/
IMPORTANT: Only set this option to true while developing, not in production!
OptionalenableEnables Out of Memory Tracking for iOS and macCatalyst. See the following link for more information and possible restrictions: https://docs.sentry.io/platforms/apple/guides/ios/configuration/out-of-memory/
Renamed from enableOutOfMemoryTracking in v5.
OptionalflushOptionalheadersOptionalmaxThe max cache items for capping the number of envelopes.
OptionalmaxThe max queue size for capping the number of envelopes waiting to be sent by Transport.
OptionalonerrorOptionalonCallback that is called after the RN SDK on the JS Layer has made contact with the Native Layer.
OptionalonunhandledrejectionOptionalpatchWhen enabled, Sentry will overwrite the global Promise instance to ensure that unhandled rejections are correctly tracked.
If you run into issues with Promise polyfills such as core-js, make sure you polyfill after Sentry is initialized.
Read more at https://docs.sentry.io/platforms/react-native/troubleshooting/#unhandled-promise-rejections
When disabled, this option will not disable unhandled rejection tracking. Set onunhandledrejection: false on the ReactNativeErrorHandlers integration instead.
OptionalsessionThe interval to end a session if the App goes to the background.
OptionalspotlightThis option changes the default Spotlight Sidecar URL.
By default, the SDK expects the Sidecar to be running on the same host as React Native Metro Dev Server.
More details: https://spotlightjs.com/
Configuration options for the Sentry ReactNative SDK.
See
ReactNativeFrontend for more information.