From 519e600d8ec505645da7f6abd7239440102eecc9 Mon Sep 17 00:00:00 2001 From: Antonis Lilis Date: Wed, 20 May 2026 14:16:54 +0200 Subject: [PATCH 1/2] docs(react-native): Add pause/resume app hang tracking API Co-Authored-By: Claude Opus 4.6 --- .../react-native/configuration/app-hangs.mdx | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/docs/platforms/react-native/configuration/app-hangs.mdx b/docs/platforms/react-native/configuration/app-hangs.mdx index 96eca78b6f027..0a69bffbcb782 100644 --- a/docs/platforms/react-native/configuration/app-hangs.mdx +++ b/docs/platforms/react-native/configuration/app-hangs.mdx @@ -30,4 +30,19 @@ Sentry.init({ }); ``` +### Pause and Resume App Hang Tracking (iOS only) + +Starting with version 8.12.0, you can pause and resume app hang tracking at runtime. This is useful when showing system dialogs (for example, permission prompts) that block the main thread but aren't real app hangs. + +```javascript +import * as Sentry from "@sentry/react-native"; + +Sentry.pauseAppHangTracking(); + +// Do something that might cause the app to hang, +// and you don't want the SDK to report it. + +Sentry.resumeAppHangTracking(); +``` + To read more about how app hangs are detected, check out the `sentry-cocoa` [documentation](/platforms/apple/configuration/app-hangs/). From 21c228ef7d544f13e21d418b3fae5f7d3e4eed55 Mon Sep 17 00:00:00 2001 From: Antonis Lilis Date: Thu, 21 May 2026 11:26:19 +0200 Subject: [PATCH 2/2] Pushing to the next release --- docs/platforms/react-native/configuration/app-hangs.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/platforms/react-native/configuration/app-hangs.mdx b/docs/platforms/react-native/configuration/app-hangs.mdx index 0a69bffbcb782..be30f3e427356 100644 --- a/docs/platforms/react-native/configuration/app-hangs.mdx +++ b/docs/platforms/react-native/configuration/app-hangs.mdx @@ -32,7 +32,7 @@ Sentry.init({ ### Pause and Resume App Hang Tracking (iOS only) -Starting with version 8.12.0, you can pause and resume app hang tracking at runtime. This is useful when showing system dialogs (for example, permission prompts) that block the main thread but aren't real app hangs. +Starting with version 8.13.0, you can pause and resume app hang tracking at runtime. This is useful when showing system dialogs (for example, permission prompts) that block the main thread but aren't real app hangs. ```javascript import * as Sentry from "@sentry/react-native";