Skip to content

Commit 63aa499

Browse files
SalmaAliSalmaAli
authored andcommitted
✨ add setInvocationOptions mapping in ios
1 parent f4708b0 commit 63aa499

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

ios/RNInstabug/InstabugReactBridge.m

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -233,6 +233,16 @@ - (dispatch_queue_t)methodQueue {
233233
IBGBugReporting.invocationEvents = invocationEvents;
234234
}
235235

236+
RCT_EXPORT_METHOD(setInvocationOptions:(NSArray*)invocationOptionsArray) {
237+
IBGBugReportingInvocationOption invocationOptions = 0;
238+
239+
for (NSNumber *boxedValue in invocationOptionsArray) {
240+
invocationOptions |= [boxedValue intValue];
241+
}
242+
243+
IBGBugReporting.invocationOptions = invocationOptions;
244+
}
245+
236246
RCT_EXPORT_METHOD(setPushNotificationsEnabled:(BOOL)isPushNotificationEnabled) {
237247
[Instabug setPushNotificationsEnabled:isPushNotificationEnabled];
238248
}

0 commit comments

Comments
 (0)