Bug Reporting Callbacks

Covered here are event handlers that you can use to have a block of code executed when a certain action is triggered for your React Native apps.

Before Invoking Luciq

This block is executed on the UI thread. You can use it to perform any UI changes before the SDK's UI is shown.

JavaScript
BugReporting.onInvokeHandler(function () {
    // Perform any UI changes before the SDK's UI is shown.
});

Before Sending a Report

This block is executed in the background before sending each report. You can use it to attach logs and extra data to reports.

JavaScript
Luciq.onReportSubmitHandler((report) => {
    // Attach logs and extra data to reports.
});

After Dismissing Luciq

This block is executed on the UI thread. You can use it to perform any UI changes after the SDK's UI has been dismissed.

JavaScript
BugReporting.onSDKDismissedHandler(function (dismissType, reportType) {
    // Perform any UI changes after the SDK's UI has been dismissed.
});
onSDKDismissedHandler parameters
  • dismissType: How the SDK was dismissed.

  • reportType: The type of report that was sent. If the SDK was dismissed without selecting a report type, it will be set to bug, so you might need to check issueState before reportType.

Last updated