Skip to content

Commit 6fea0ee

Browse files
Add full Sentry.init example
Co-authored-by: LucasZF <[email protected]>
1 parent 6e2dc55 commit 6fea0ee

File tree

1 file changed

+12
-9
lines changed
  • docs/platforms/react-native/user-feedback/configuration

1 file changed

+12
-9
lines changed

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

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -248,16 +248,19 @@ You can show a button that allows the user to take a screenshot in the Feedback
248248
```javascript
249249
import * as Sentry from "@sentry/react-native";
250250

251-
Sentry.feedbackIntegration({
252-
enableTakeScreenshot: true,
253-
screenshotButtonOptions: {
254-
styles: {
255-
triggerButton: {
256-
marginBottom: 75,
251+
Sentry.init({
252+
integrations: [
253+
Sentry.feedbackIntegration({
254+
buttonOptions: {
255+
styles: {
256+
triggerButton: {
257+
marginBottom: 75,
258+
},
259+
},
257260
},
258-
},
259-
},
260-
})
261+
}),
262+
],
263+
});
261264

262265
Sentry.showFeedbackButton();
263266
```

0 commit comments

Comments
 (0)