Skip to content

Commit 3b8ac8f

Browse files
Add full Sentry init in the example
Co-authored-by: LucasZF <[email protected]>
1 parent 10a9639 commit 3b8ac8f

File tree

1 file changed

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

1 file changed

+12
-8
lines changed

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

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -140,15 +140,19 @@ The example below shows how to customize the bottom margin with the `feedbackInt
140140
```javascript
141141
import * as Sentry from "@sentry/react-native";
142142

143-
Sentry.feedbackIntegration({
144-
buttonOptions: {
145-
styles: {
146-
triggerButton: {
147-
marginBottom: 75,
143+
Sentry.init({
144+
integrations: [
145+
Sentry.feedbackIntegration({
146+
buttonOptions: {
147+
styles: {
148+
triggerButton: {
149+
marginBottom: 75,
150+
},
151+
},
148152
},
149-
},
150-
},
151-
})
153+
}),
154+
],
155+
});
152156

153157
Sentry.showFeedbackButton();
154158
```

0 commit comments

Comments
 (0)