mirror of
https://github.com/status-im/instabug-reactnative.git
synced 2025-03-02 14:10:40 +00:00
✨ Add setAutoShowingSurveysEnabled API for iOS
This commit is contained in:
parent
f681a840eb
commit
05ffea7d13
10
index.js
10
index.js
@ -913,6 +913,16 @@ module.exports = {
|
|||||||
Instabug.setThresholdForReshowingSurveyAfterDismiss(sessionCount, daysCount);
|
Instabug.setThresholdForReshowingSurveyAfterDismiss(sessionCount, daysCount);
|
||||||
},
|
},
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Sets whether auto surveys showing are enabled or not.
|
||||||
|
* @param autoShowingSurveysEnabled A boolean to indicate whether the
|
||||||
|
* surveys auto showing are enabled or not.
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
setAutoShowingSurveysEnabled: function(autoShowingSurveysEnabled) {
|
||||||
|
Instabug.setAutoShowingSurveysEnabled(autoShowingSurveysEnabled);
|
||||||
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The event used to invoke the feedback form
|
* The event used to invoke the feedback form
|
||||||
* @readonly
|
* @readonly
|
||||||
|
@ -365,6 +365,10 @@ RCT_EXPORT_METHOD(setViewHirearchyEnabled:(BOOL)viewHirearchyEnabled) {
|
|||||||
[Instabug setViewHierarchyEnabled:viewHirearchyEnabled];
|
[Instabug setViewHierarchyEnabled:viewHirearchyEnabled];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
RCT_EXPORT_METHOD(setAutoShowingSurveysEnabled:(BOOL)autoShowingSurveysEnabled) {
|
||||||
|
[Instabug setAutoShowingSurveysEnabled:autoShowingSurveysEnabled];
|
||||||
|
}
|
||||||
|
|
||||||
RCT_EXPORT_METHOD(setVideoRecordingFloatingButtonPosition:(IBGPosition)position) {
|
RCT_EXPORT_METHOD(setVideoRecordingFloatingButtonPosition:(IBGPosition)position) {
|
||||||
[Instabug setVideoRecordingFloatingButtonPosition:position];
|
[Instabug setVideoRecordingFloatingButtonPosition:position];
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user