Skip to content

Commit 10624ae

Browse files
split feedback button example
Co-authored-by: Krystof Woldrich <[email protected]>
1 parent 3b8ac8f commit 10624ae

File tree

1 file changed

+7
-2
lines changed
  • docs/platforms/react-native/user-feedback/configuration

1 file changed

+7
-2
lines changed

docs/platforms/react-native/user-feedback/configuration/index.mdx

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,20 @@ The User Feedback Widget offers many customization options, and if the available
99
![An image showing the main customization options for the User Feedback Widget](./img/mobile-user-feedback-widget-customization.png)
1010
To collect user feedback from inside your application, use the `showFeedbackButton`/`hideFeedbackButton` to show/hide a button that triggers the Feedback Widget or the `showFeedbackWidget` method to present the widget directly.
1111

12-
```javascript
12+
```JavaScript {tabTitle:Widget}
1313
import * as Sentry from "@sentry/react-native";
1414

1515
Sentry.wrap(RootComponent);
1616

1717
Sentry.showFeedbackWidget();
18+
```
1819

19-
Sentry.showFeedbackButton();
20+
```JavaScript {tabTitle:Button}
21+
import * as Sentry from "@sentry/react-native";
2022

23+
Sentry.wrap(RootComponent);
24+
25+
Sentry.showFeedbackButton();
2126
Sentry.hideFeedbackButton();
2227
```
2328

0 commit comments

Comments
 (0)