Skip to content

Commit 013243e

Browse files
Add full Sentry.init example
Co-authored-by: LucasZF <[email protected]>
1 parent e29da22 commit 013243e

File tree

1 file changed

+15
-11
lines changed
  • docs/platforms/react-native/user-feedback/configuration

1 file changed

+15
-11
lines changed

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

Lines changed: 15 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -246,17 +246,21 @@ You can also customize the Feedback Widget colors to match your app's theme. The
246246
```javascript
247247
import * as Sentry from "@sentry/react-native";
248248

249-
Sentry.feedbackIntegration({
250-
colorScheme: 'system',
251-
themeLight: {
252-
foreground: '#ff0000',
253-
background: '#00ff00',
254-
},
255-
themeDark: {
256-
foreground: '#00ff00',
257-
background: '#ff0000',
258-
},
259-
}),
249+
Sentry.init({
250+
integrations: [
251+
Sentry.feedbackIntegration({
252+
colorScheme: 'system',
253+
themeLight: {
254+
foreground: '#ff0000',
255+
background: '#00ff00',
256+
},
257+
themeDark: {
258+
foreground: '#00ff00',
259+
background: '#ff0000',
260+
},
261+
}),
262+
],
263+
});
260264
```
261265

262266
The available theme options are:

0 commit comments

Comments
 (0)