Skip to content

Commit 05ffea7

Browse files
committed
✨ Add setAutoShowingSurveysEnabled API for iOS
1 parent f681a84 commit 05ffea7

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

index.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -913,6 +913,16 @@ module.exports = {
913913
Instabug.setThresholdForReshowingSurveyAfterDismiss(sessionCount, daysCount);
914914
},
915915

916+
/**
917+
* Sets whether auto surveys showing are enabled or not.
918+
* @param autoShowingSurveysEnabled A boolean to indicate whether the
919+
* surveys auto showing are enabled or not.
920+
*
921+
*/
922+
setAutoShowingSurveysEnabled: function(autoShowingSurveysEnabled) {
923+
Instabug.setAutoShowingSurveysEnabled(autoShowingSurveysEnabled);
924+
},
925+
916926
/**
917927
* The event used to invoke the feedback form
918928
* @readonly

ios/RNInstabug/InstabugReactBridge.m

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -365,6 +365,10 @@ - (dispatch_queue_t)methodQueue {
365365
[Instabug setViewHierarchyEnabled:viewHirearchyEnabled];
366366
}
367367

368+
RCT_EXPORT_METHOD(setAutoShowingSurveysEnabled:(BOOL)autoShowingSurveysEnabled) {
369+
[Instabug setAutoShowingSurveysEnabled:autoShowingSurveysEnabled];
370+
}
371+
368372
RCT_EXPORT_METHOD(setVideoRecordingFloatingButtonPosition:(IBGPosition)position) {
369373
[Instabug setVideoRecordingFloatingButtonPosition:position];
370374
}

0 commit comments

Comments
 (0)