Skip to content

Commit 135b621

Browse files
Add @ReactMethod annotation and docs to ReportCategoriesAPI
1 parent 7604cba commit 135b621

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

android/src/main/java/com/instabug/reactlibrary/RNInstabugReactnativeModule.java

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -627,6 +627,15 @@ public void clearAllUserAttributes() {
627627
}
628628
}
629629

630+
/**
631+
* Allows you to show a predefined set of categories for users to choose
632+
* from when reporting a bug or sending feedback. Selected category
633+
* shows up on your Instabug dashboard as a tag to make filtering
634+
* through issues easier.
635+
*
636+
* @param reportCategories the report categories list which is a list of ReportCategory model
637+
*/
638+
@ReactMethod
630639
public void setReportCategories(String... categoriesTitles) {
631640
try {
632641
ArrayList<ReportCategory> bugCategories = new ArrayList<>();

0 commit comments

Comments
 (0)