Skip to content

Commit 2a378f1

Browse files
Add missing options for RN (#4828)
Co-authored-by: Isabel <76437239+imatwawana@users.noreply.github.com>
1 parent d71b88a commit 2a378f1

File tree

1 file changed

+56
-2
lines changed

1 file changed

+56
-2
lines changed

src/platforms/common/configuration/options.mdx

Lines changed: 56 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ Grouping in Sentry is different for events with stack traces and without. As a r
177177

178178
</ConfigKey>
179179

180-
<ConfigKey name="send-default-pii" supported={["apple", "dotnet", "react-native", "python", "java", "php", "rust", "dart"]}>
180+
<ConfigKey name="send-default-pii" supported={["apple", "dotnet", "react-native", "python", "java", "php", "rust", "dart", "react-native"]}>
181181

182182
If this flag is enabled, certain personally identifiable information (PII) is added by active integrations. By default, no such data is sent.
183183

@@ -459,7 +459,7 @@ The default is `1` (one) second.
459459

460460
</ConfigKey>
461461

462-
<ConfigKey name="shutdown-timeout" supported={["python", "node", "java", "dotnet", "rust"]}>
462+
<ConfigKey name="shutdown-timeout" supported={["python", "node", "java", "dotnet", "rust", "react-native", "javascript.capacitor"]}>
463463

464464
Controls how many seconds to wait before shutting down. Sentry SDKs send events from a background queue. This queue is given a certain amount to drain pending events. The default is SDK specific but typically around two seconds. Setting this value too low may cause problems for sending events from command line applications. Setting the value too high will cause the application to block for a long time for users experiencing network connectivity problems.
465465

@@ -509,4 +509,58 @@ You should follow the [guide to native initialization](/platforms/react-native/m
509509

510510
</ConfigKey>
511511

512+
<ConfigKey name="enableNativeCrashHandling" supported={["react-native", "javascript.capacitor"]}>
513+
514+
Set this boolean to `false` to disable hard crash handling from the native layer. Doing so means that the SDK won't capture events for hard crashes on Android and iOS if the error was caused by native code.
515+
516+
</ConfigKey>
517+
518+
<ConfigKey name="enableNativeNagger" supported={["react-native", "javascript.capacitor"]}>
519+
520+
Set this boolean to `false` to disable the native nagger alert being shown.
521+
522+
</ConfigKey>
523+
524+
<ConfigKey name="enableAutoSessionTracking">
525+
526+
Set this boolean to `false` to disable the [release health](/product/releases/health/) feature.
527+
528+
</ConfigKey>
529+
530+
<ConfigKey name="sessionTrackingIntervalMillis">
531+
532+
Set this to change the default interval to end a session (release health) if the app goes to the background. Default is 30,000.
533+
534+
</ConfigKey>
535+
536+
<ConfigKey name="enableNdkScopeSync">
537+
538+
Set this boolean to `false` to disable the scope sync from Java to NDK on Android.
539+
540+
</ConfigKey>
541+
542+
<ConfigKey name="attachThreads">
543+
544+
Set this boolean to `true` to automatically attach all threads to all logged events on Android.
545+
546+
</ConfigKey>
547+
548+
<ConfigKey name="enableAutoPerformanceTracking" supported={["react-native"]}>
549+
550+
Set this boolean to `false` to disable auto [performance monitoring](/product/performance/) tracking.
551+
552+
</ConfigKey>
553+
554+
<ConfigKey name="enableOutOfMemoryTracking" supported={["react-native"]}>
555+
556+
Set this boolean to `false` to disable [out of memory](/platforms/apple/guides/ios/configuration/out-of-memory/) tracking on iOS.
557+
558+
</ConfigKey>
559+
560+
<ConfigKey name="onReady" supported={["react-native"]}>
561+
562+
Set this callback, which is called after the Sentry React Native SDK initializes its Native SDKs (Android and iOS).
563+
564+
</ConfigKey>
565+
512566
</PlatformSection>

0 commit comments

Comments
 (0)