You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/platforms/react-native/user-feedback/configuration/index.mdx
+28-28Lines changed: 28 additions & 28 deletions
Original file line number
Diff line number
Diff line change
@@ -7,26 +7,26 @@ description: "Learn about the User Feedback Widget configuration options."
7
7
The User Feedback Widget offers many customization options, and if the available options are insufficient, you can [use your own UI](/platforms/react-native/user-feedback/#user-feedback-api).
8
8
9
9

10
-
To collect user feedback from inside your application use the `showFeedbackForm` method.
10
+
To collect user feedback from inside your application use the `showFeedbackWidget` method.
11
11
12
12
```javascript
13
13
import*asSentryfrom"@sentry/react-native";
14
14
15
-
Sentry.showFeedbackForm();
15
+
Sentry.showFeedbackWidget();
16
16
```
17
17
## General
18
18
19
-
The following options can be configured for the integration in `feedbackIntegration({})` or passed in the `FeedbackForm` component props:
19
+
The following options can be configured for the integration in `feedbackIntegration({})` or passed in the `FeedbackWidget` component props:
|`showBranding`|`boolean`|`true`| Displays the Sentry logo inside of the form.|
25
-
|`showName`|`boolean`|`true`| Displays the name field on the feedback form. |
26
-
|`showEmail`|`boolean`|`true`| Displays the email field on the feedback form. |
24
+
|`showBranding`|`boolean`|`true`| Displays the Sentry logo. |
25
+
|`showName`|`boolean`|`true`| Displays the name field on the feedback widget.|
26
+
|`showEmail`|`boolean`|`true`| Displays the email field on the feedback widget.|
27
27
|`enableScreenshot`|`boolean`|`false`| Allows the user to send a screenshot attachment with their feedback. |
28
-
|`isNameRequired`|`boolean`|`false`| Requires the name field on the feedback form to be filled in.|
29
-
|`isEmailRequired`|`boolean`|`false`| Requires the email field on the feedback form to be filled in.|
28
+
|`isNameRequired`|`boolean`|`false`| Requires the name field on the feedback widget to be filled in. |
29
+
|`isEmailRequired`|`boolean`|`false`| Requires the email field on the feedback widget to be filled in. |
30
30
|`shouldValidateEmail`|`boolean`|`true`| If set the email is validated with the following regular expression `"/^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/"`|
31
31
|`useSentryUser`|`Record<string, string>`|`{ email: 'email', name: 'username'}`| Sets the default values for the `email` and `name` fields. |
32
32
@@ -35,15 +35,15 @@ The following options can be configured for the integration in `feedbackIntegrat
35
35
36
36
All the text that you see in the Feedback widget can be customized.
37
37
38
-
The following options can be configured for the integration in `feedbackIntegration({})` or passed in the `FeedbackForm` component props:
38
+
The following options can be configured for the integration in `feedbackIntegration({})` or passed in the `FeedbackWidget` component props:
|`onFormClose`|| The form is unmounted.| Callback when form is closed and not submitted.|
131
-
|`onSubmitSuccess`|`data: FeedbackFormData`|| Callback when feedback is successfully submitted. |
132
-
|`onSubmitError`|`error: Error`|| Callback when feedback is unsuccessfully submitted. |
133
-
|`onFormSubmitted`|| The form is unmounted.| Callback when the feedback form is submitted successfully, and the SuccessMessage is complete, or dismissed.|
134
-
|`onAddScreenshot`|`attachFile: (filename: string, data: Uint8Array) => void`|| Callback when a screenshot is added. |
|`onFormOpen`||| Callback when widget is opened. |
130
+
|`onFormClose`|| The widget is unmounted.| Callback when widget is closed and not submitted. |
131
+
|`onSubmitSuccess`|`data: FeedbackFormData`|| Callback when feedback is successfully submitted.|
132
+
|`onSubmitError`|`error: Error`|| Callback when feedback is unsuccessfully submitted.|
133
+
|`onFormSubmitted`|| The widget is unmounted.| Callback when the feedback widget is submitted successfully, and the SuccessMessage is complete, or dismissed.|
134
+
|`onAddScreenshot`|`attachFile: (filename: string, data: Uint8Array) => void`|| Callback when a screenshot is added.|
Copy file name to clipboardExpand all lines: docs/platforms/react-native/user-feedback/index.mdx
+9-9Lines changed: 9 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -12,17 +12,17 @@ Note that if you're using a self-hosted Sentry instance, you'll need to be on ve
12
12
13
13
The user feedback widget allows users to submit feedback from anywhere inside your application.
14
14
15
-
To collect user feedback from inside your application use the `showFeedbackForm` method.
15
+
To collect user feedback from inside your application use the `showFeedbackWidget` method.
16
16
17
17
```javascript
18
18
import*asSentryfrom"@sentry/react-native";
19
19
20
-
Sentry.showFeedbackForm();
20
+
Sentry.showFeedbackWidget();
21
21
```
22
22
23
-
Note that the `showFeedbackForm` method depends on the React Native `Modal` implementation. It is supported fully in the legacy architecture. For the new architecture (Fabric renderer) it requires React Native `0.71` and up.
23
+
Note that the `showFeedbackWidget` method depends on the React Native `Modal` implementation. It is supported fully in the legacy architecture. For the new architecture (Fabric renderer) it requires React Native `0.71` and up.
24
24
25
-
To configure the form you can use the `Sentry.feedbackIntegration({})` or add it to your Sentry initialization.
25
+
To configure the widget you can use the `Sentry.feedbackIntegration({})` or add it to your Sentry initialization.
26
26
27
27
```javascript
28
28
import*asSentryfrom"@sentry/react-native";
@@ -46,17 +46,17 @@ Sentry.init({
46
46
47
47
There are many options you can pass to the integration constructor. See the [configuration documentation](/platforms/react-native/user-feedback/configuration/) for more details.
48
48
49
-
### Feedback Form Component
49
+
### Feedback Widget Component
50
50
51
-
You can also integrate the `FeedbackForm` component manually in your app.
51
+
You can also integrate the `FeedbackWidget` component manually in your app.
For the full set of options you can pass to the `FeedbackForm` component see the [configuration documentation](/platforms/react-native/user-feedback/configuration/).
59
+
For the full set of options you can pass to the `FeedbackWidget` component see the [configuration documentation](/platforms/react-native/user-feedback/configuration/).
0 commit comments