mirror of
https://github.com/status-im/instabug-reactnative.git
synced 2026-08-31 14:11:11 +00:00
Add @ReactMethod annotation and docs to ReportCategoriesAPI
This commit is contained in:
@@ -627,6 +627,15 @@ public class RNInstabugReactnativeModule extends ReactContextBaseJavaModule {
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Allows you to show a predefined set of categories for users to choose
|
||||
* from when reporting a bug or sending feedback. Selected category
|
||||
* shows up on your Instabug dashboard as a tag to make filtering
|
||||
* through issues easier.
|
||||
*
|
||||
* @param reportCategories the report categories list which is a list of ReportCategory model
|
||||
*/
|
||||
@ReactMethod
|
||||
public void setReportCategories(String... categoriesTitles) {
|
||||
try {
|
||||
ArrayList<ReportCategory> bugCategories = new ArrayList<>();
|
||||
|
||||
Reference in New Issue
Block a user