Skip to content

fix(react-native-sdk): document shake-to-report feedback feature (SDK v8.5.0)#78

Draft
Copilot wants to merge 2 commits intomainfrom
copilot/update-sentry-react-native-sdk
Draft

fix(react-native-sdk): document shake-to-report feedback feature (SDK v8.5.0)#78
Copilot wants to merge 2 commits intomainfrom
copilot/update-sentry-react-native-sdk

Conversation

Copy link
Contributor

Copilot AI commented Mar 24, 2026

SDK v8.5.0 shipped native shake-to-report for the feedback widget (getsentry/sentry-react-native#5754). The skill files had no coverage of enableShakeToReport, enableFeedbackOnShake(), or disableFeedbackOnShake().

references/user-feedback.md

  • New Shake to Report section under Approach 1 covering both declarative and imperative usage
  • enableShakeToReport added to feedbackIntegration config table
  • enableFeedbackOnShake() / disableFeedbackOnShake() added to API summary table
  • Version requirement (≥8.5.0) added to version table
  • Two shake-specific troubleshooting entries
  • Replaced stale "shake gesture handler" text with link to the new built-in section

SKILL.md

  • feedbackIntegration() row in opt-in integrations table updated to mention enableShakeToReport
// Declarative
Sentry.init({
  integrations: [
    Sentry.feedbackIntegration({ enableShakeToReport: true }),
  ],
});

// Imperative
Sentry.enableFeedbackOnShake();
Sentry.disableFeedbackOnShake();

All API names and the version number verified against SDK source and changelog.

Original prompt

This section details on the original issue you should resolve

<issue_title>[skill-drift] sentry-react-native-sdk may need updates</issue_title>
<issue_description>cc @getsentry/team-mobile-cross-platform

SDK Changes Detected

The following PR was merged to getsentry/sentry-react-native in the last 7 days that may affect the sentry-react-native-sdk skill:

Potential Skill Gaps

  1. New Feature — Shake to Report: PR #5754 adds native shake-to-report functionality for the feedback widget, delegating to SentryShakeDetector in the native iOS and Android SDKs. Two new APIs were added:

    • Config option in feedbackIntegration: enableShakeToReport: true — automatically shows the feedback widget when the device is shaken.
    • Imperative APIs: Sentry.enableFeedbackOnShake() and Sentry.disableFeedbackOnShake() — programmatically start/stop shake detection at runtime.

    The current references/user-feedback.md mentions "shake gesture handler" only as a manual code pattern (calling Sentry.showFeedbackWidget() from a custom RN shake handler). It does not document the new built-in native shake detection capability.

    // Option A: declarative via feedbackIntegration config
    Sentry.init({
      integrations: [
        Sentry.feedbackIntegration({ enableShakeToReport: true }),
      ],
    });
    
    // Option B: imperative
    Sentry.enableFeedbackOnShake();
    // later...
    Sentry.disableFeedbackOnShake();

Skill Files to Review

  • skills/sentry-react-native-sdk/references/user-feedback.md
  • skills/sentry-react-native-sdk/SKILL.md (feedbackIntegration config table at line 684)

Priority

MEDIUM — New user-facing feature with both config option and imperative API that users will ask about.

Generated by SDK Skill Drift Detector ·

  • expires on Apr 6, 2026, 11:02 PM UTC

Comments on the Issue (you are @copilot in this section)

Custom agent used: skill-updater
Expert Sentry SDK skill author that updates and creates SDK skill bundles. Specializes in researching SDK changes, verifying APIs against official docs and source code, and producing high-quality wizard flows with deep-dive reference files. Use when updating skills after SDK changes, creating new skills for new platforms, or fixing skill drift issues.


📱 Kick off Copilot coding agent tasks wherever you are with GitHub Mobile, available on iOS and Android.

…SDK v8.5.0

Co-Authored-By: Claude <noreply@anthropic.com>

Co-authored-by: HazAT <363802+HazAT@users.noreply.github.com>
Agent-Logs-Url: https://github.com/getsentry/sentry-for-ai/sessions/d315b3c3-3fd0-4e57-8e3d-904776533e60
Copilot AI changed the title [WIP] Update sentry-react-native-sdk for shake-to-report feature fix(react-native-sdk): document shake-to-report feedback feature (SDK v8.5.0) Mar 24, 2026
Copilot AI requested a review from HazAT March 24, 2026 15:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[skill-drift] sentry-react-native-sdk may need updates

2 participants