Optional
appThe 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
Optional
appOptional prefix to add while rewriting frames
Optional
attachWhen enabled and a user experiences an error, Sentry provides the ability to take a screenshot and include it as an attachment.
Optional
attachWhen enabled, all the threads are automatically attached to all logged events on Android
Optional
attachWhen enabled Sentry includes the current view hierarchy in the error attachments.
Optional
autoInitializes 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.
Optional
breadcrumbsOptional
colnooffset applied to errors colno
Optional
disablednative integrations to disable.
Optional
enableWhen enabled, the SDK tracks when the application stops responding for a specific amount of
time defined by the appHangTimeoutInterval
option.
iOS only
Optional
enableEnable auto performance tracking by default.
Optional
enableShould sessions be tracked to Sentry Health or not. Default to true!
Optional
enableWhen 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.
Optional
enableEnables 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
.
Optional
enableEnables native crashHandling. This only works if enableNative
is true
.
Defaults to true
.
Optional
enableShould the native nagger alert be shown or not.
Optional
enableEnable NDK on Android
Optional
enableEnable scope sync from Java to NDK on Android
Only has an effect if enableNdk
is true
.
Optional
enableThis 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!
Optional
enableEnables 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.
Optional
flushOptional
headersOptional
maxThe max cache items for capping the number of envelopes.
Optional
maxThe max queue size for capping the number of envelopes waiting to be sent by Transport.
Optional
onerrorOptional
onCallback that is called after the RN SDK on the JS Layer has made contact with the Native Layer.
Optional
onunhandledrejectionOptional
patchWhen 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.
Optional
sessionThe interval to end a session if the App goes to the background.
Optional
spotlightThis 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.