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
+5-5Lines changed: 5 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -133,7 +133,7 @@ The following callbacks can be configured for the integration in `feedbackIntegr
133
133
|`onSubmitSuccess`|`data: FeedbackFormData`|| Callback when feedback is successfully submitted. |
134
134
|`onSubmitError`|`error: Error`|| Callback when feedback is unsuccessfully submitted. |
135
135
|`onFormSubmitted`|| The widget is unmounted.| Callback when the feedback widget is submitted successfully, and the SuccessMessage is complete, or dismissed.|
136
-
|`onAddScreenshot`|`attachFile: (filename: string, data: Uint8Array) => void`|| Callback when a screenshot is added. |
136
+
|`onAddScreenshot`|`addScreenshot: (uri: string) => void`|| Callback when a screenshot is added. |
137
137
138
138
## Screenshots
139
139
@@ -171,20 +171,20 @@ Sentry.init({
171
171
172
172
### Implementing the `onAddScreenshot` Callback
173
173
174
-
If the above libraries do not cover your use case you can manually integrate screenshots by implementing the `onAddScreenshot` callback. The callback receives a filename and a `Uint8Array` of the image data like in the example below.
174
+
If the above libraries do not cover your use case you can manually integrate screenshots by implementing the `onAddScreenshot` callback. The callback receives the `uri` of the image like in the example below.
0 commit comments