Skip to content

Commit cdc3945

Browse files
misc(changelog): Add options example and showFeedbackWidget code snippet (#4581)
1 parent d8992c6 commit cdc3945

File tree

1 file changed

+26
-5
lines changed

1 file changed

+26
-5
lines changed

CHANGELOG.md

Lines changed: 26 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,35 @@
1212

1313
- User Feedback Widget Beta ([#4435](https://github.com/getsentry/sentry-react-native/pull/4435))
1414

15-
To collect user feedback from inside your application call `Sentry.showFeedbackWidget()` or add the `FeedbackWidget` component.
15+
To collect user feedback from inside your application call `Sentry.showFeedbackWidget()`.
1616

17-
```jsx
18-
import { FeedbackWidget } from "@sentry/react-native";
19-
...
20-
<FeedbackWidget/>
17+
```js
18+
import Sentry from "@sentry/react-native";
19+
20+
Sentry.showFeedbackWidget();
21+
22+
Sentry.wrap(RootComponent);
23+
```
24+
25+
To change the default options add `Sentry.feedbackIntegration()`.
26+
27+
```js
28+
import Sentry from "@sentry/react-native";
29+
import * as ImagePicker from 'expo-image-picker';
30+
31+
Sentry.init({
32+
integrations: [
33+
Sentry.feedbackIntegration({
34+
imagePicker: ImagePicker,
35+
showName: true,
36+
showEmail: true,
37+
}),
38+
],
39+
});
2140
```
2241

42+
To learn more about the available configuration options visit [the documentation](https://docs.sentry.io/platforms/react-native/user-feedback/configuration).
43+
2344
## 6.8.0
2445

2546
### Features

0 commit comments

Comments
 (0)