We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f4708b0 commit 63aa499Copy full SHA for 63aa499
ios/RNInstabug/InstabugReactBridge.m
@@ -233,6 +233,16 @@ - (dispatch_queue_t)methodQueue {
233
IBGBugReporting.invocationEvents = invocationEvents;
234
}
235
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
246
RCT_EXPORT_METHOD(setPushNotificationsEnabled:(BOOL)isPushNotificationEnabled) {
247
[Instabug setPushNotificationsEnabled:isPushNotificationEnabled];
248
0 commit comments