mirror of
https://github.com/status-im/instabug-reactnative.git
synced 2025-03-02 14:10:40 +00:00
Add signature of methods to index.js
This commit is contained in:
parent
d28fe0836f
commit
33dd6d3ad4
36
index.js
36
index.js
@ -657,6 +657,42 @@ module.exports = {
|
||||
Instabug.clearAllUserAttributes();
|
||||
},
|
||||
|
||||
setViewHirearchyEnabled: function (viewHirearchyEnabled) {
|
||||
Instabug.setViewHirearchyEnabled(viewHirearchyEnabled);
|
||||
},
|
||||
|
||||
setSurveysEnabled: function(surveysEnabled) {
|
||||
Instabug.setSurveysEnabled(surveysEnabled)
|
||||
},
|
||||
|
||||
showSurveysIfAvailable: function() {
|
||||
Instabug.showSurveysIfAvailable()
|
||||
},
|
||||
|
||||
setWillShowSurveyHandler: function (willShowSurveyHandler) {
|
||||
if (Platform.OS === 'ios') {
|
||||
Instabug.addListener('IBGWillShowSurvey');
|
||||
NativeAppEventEmitter.addListener(
|
||||
'IBGWillShowSurvey',
|
||||
willShowSurveyHandler
|
||||
);
|
||||
|
||||
Instabug.setWillShowSurveyHandler(willShowSurveyHandler);
|
||||
}
|
||||
},
|
||||
|
||||
setDidDismissSurveyHandler: function (didDismissSurveyHandler) {
|
||||
if (Platform.OS === 'ios') {
|
||||
Instabug.addListener('IBGDidDismissSurvey');
|
||||
NativeAppEventEmitter.addListener(
|
||||
'IBGDidDismissSurvey',
|
||||
didDismissSurveyHandler
|
||||
);
|
||||
|
||||
Instabug.setDidDismissSurveyHandler(didDismissSurveyHandler);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* The event used to invoke the feedback form
|
||||
* @readonly
|
||||
|
Loading…
x
Reference in New Issue
Block a user