Skip to content

Commit 75420d3

Browse files
committed
Add IBGReportType iOS enum mapping
1 parent d29ced4 commit 75420d3

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

ios/RNInstabug/ArgsRegistry.m

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ + (NSMutableDictionary *) getAll {
1414
[all addEntriesFromDictionary:ArgsRegistry.recordButtonPositions];
1515
[all addEntriesFromDictionary:ArgsRegistry.welcomeMessageStates];
1616
[all addEntriesFromDictionary:ArgsRegistry.reportTypes];
17+
[all addEntriesFromDictionary:ArgsRegistry.sdkDimissReportTypes];
1718
[all addEntriesFromDictionary:ArgsRegistry.dismissTypes];
1819
[all addEntriesFromDictionary:ArgsRegistry.actionTypes];
1920
[all addEntriesFromDictionary:ArgsRegistry.extendedBugReportStates];
@@ -112,6 +113,15 @@ + (ArgsDictionary *) reportTypes {
112113
};
113114
}
114115

116+
+ (ArgsDictionary *) sdkDimissReportTypes {
117+
return @{
118+
@"bugReportingReportTypeBug": @(IBGReportTypeBug),
119+
@"bugReportingReportTypeFeedback": @(IBGReportTypeFeedback),
120+
@"bugReportingReportTypeQuestion": @(IBGReportTypeQuestion),
121+
@"bugReportingReportTypeOther": @(IBGReportTypeOther),
122+
};
123+
}
124+
115125
+ (ArgsDictionary *) dismissTypes {
116126
return @{
117127
@"dismissTypeSubmit": @(IBGDismissTypeSubmit),

0 commit comments

Comments
 (0)