diff --git a/docs/platforms/react-native/user-feedback/configuration/index.mdx b/docs/platforms/react-native/user-feedback/configuration/index.mdx index 1cfa4cd6ab859..f188d24849939 100644 --- a/docs/platforms/react-native/user-feedback/configuration/index.mdx +++ b/docs/platforms/react-native/user-feedback/configuration/index.mdx @@ -39,6 +39,7 @@ The following options can be configured for the integration in `feedbackIntegrat | `showBranding` | `boolean` | `true` | Displays the Sentry logo. | | `showName` | `boolean` | `true` | Displays the name field on the feedback widget. | | `showEmail` | `boolean` | `true` | Displays the email field on the feedback widget. | +| `enableShakeToReport` | `boolean` | `false` | Opens the Feedback Widget when the user shakes the device. | | `enableScreenshot` | `boolean` | `false` | Allows the user to send a screenshot attachment with their feedback. | | `enableTakeScreenshot` | `boolean` | `false` | Determines whether the "Take Screenshot" button is displayed. | | `isNameRequired` | `boolean` | `false` | Requires the name field on the feedback widget to be filled in. | diff --git a/docs/platforms/react-native/user-feedback/index.mdx b/docs/platforms/react-native/user-feedback/index.mdx index e17f9082ccbd6..84be88c810a1d 100644 --- a/docs/platforms/react-native/user-feedback/index.mdx +++ b/docs/platforms/react-native/user-feedback/index.mdx @@ -66,6 +66,26 @@ Sentry.init({ There are many options you can pass to the integration constructor. See the [configuration documentation](/platforms/react-native/user-feedback/configuration/) for more details. +### Shake to Report + +You can enable shake-to-report so that shaking the device opens the Feedback Widget. Enable it declaratively via the `feedbackIntegration` option: + +```javascript +Sentry.feedbackIntegration({ + enableShakeToReport: true, +}); +``` + +Or control it programmatically: + +```javascript +// Start listening for shake gestures to open the feedback widget +Sentry.enableFeedbackOnShake(); + +// Stop listening for shake gestures +Sentry.disableFeedbackOnShake(); +``` + ### Feedback Widget Component You can also integrate the `FeedbackWidget` component manually in your app.