mirror of
https://github.com/status-im/instabug-reactnative.git
synced 2025-03-02 14:10:40 +00:00
✨ setExtendedBugReportMode API for iOS
This commit is contained in:
parent
55e5dd8b1b
commit
08e28a808b
24
index.js
24
index.js
@ -515,6 +515,7 @@ module.exports = {
|
|||||||
},
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* @deprecated since version 2.7.0, you can now add categories from the dashboard.
|
||||||
* Sets an array of report categories to be shown for users to select from before reporting a
|
* Sets an array of report categories to be shown for users to select from before reporting a
|
||||||
* bug or sending feedback.
|
* bug or sending feedback.
|
||||||
* Use this method to give users a list of choices of categories their bug report or feedback
|
* Use this method to give users a list of choices of categories their bug report or feedback
|
||||||
@ -529,6 +530,17 @@ module.exports = {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
/**
|
||||||
|
* ets whether the extended bug report mode should be disabled, enabled with
|
||||||
|
* required fields or enabled with optional fields.
|
||||||
|
* @param {extendedBugReportMode} extendedBugReportMode An enum to disable
|
||||||
|
* the extended bug report mode, enable it
|
||||||
|
* with required or with optional fields.
|
||||||
|
*/
|
||||||
|
setExtendedBugReportMode: function (extendedBugReportMode) {
|
||||||
|
Instabug.setExtendedBugReportMode(extendedBugReportMode);
|
||||||
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Logs a user event that happens through the lifecycle of the application.
|
* Logs a user event that happens through the lifecycle of the application.
|
||||||
* Logged user events are going to be sent with each report, as well as at the end of a session.
|
* Logged user events are going to be sent with each report, as well as at the end of a session.
|
||||||
@ -935,6 +947,18 @@ module.exports = {
|
|||||||
chatsList: Instabug.invocationModeChatsList
|
chatsList: Instabug.invocationModeChatsList
|
||||||
},
|
},
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The extended bug report mode
|
||||||
|
* @readonly
|
||||||
|
* @enum {number}
|
||||||
|
*/
|
||||||
|
extendedBugReportMode: {
|
||||||
|
enabledWithRequiredFields: Instabug.enabledWithRequiredFields,
|
||||||
|
enabledWithOptionalFields: Instabug.enabledWithOptionalFields,
|
||||||
|
disabled: Instabug.disabled
|
||||||
|
},
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The supported locales
|
* The supported locales
|
||||||
* @readonly
|
* @readonly
|
||||||
|
@ -168,6 +168,10 @@ RCT_EXPORT_METHOD(setLocale:(IBGLocale)locale) {
|
|||||||
[Instabug setLocale:locale];
|
[Instabug setLocale:locale];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
RCT_EXPORT_METHOD(setExtendedBugReportMode:(IBGExtendedBugReportMode)extendedBugReportMode) {
|
||||||
|
[Instabug setExtendedBugReportMode:extendedBugReportMode];
|
||||||
|
}
|
||||||
|
|
||||||
RCT_EXPORT_METHOD(setIntroMessageEnabled:(BOOL)isIntroMessageEnabled) {
|
RCT_EXPORT_METHOD(setIntroMessageEnabled:(BOOL)isIntroMessageEnabled) {
|
||||||
[Instabug setIntroMessageEnabled:isIntroMessageEnabled];
|
[Instabug setIntroMessageEnabled:isIntroMessageEnabled];
|
||||||
}
|
}
|
||||||
@ -438,6 +442,10 @@ RCT_EXPORT_METHOD(isRunningLive:(RCTResponseSenderBlock)callback) {
|
|||||||
@"colorThemeLight": @(IBGColorThemeLight),
|
@"colorThemeLight": @(IBGColorThemeLight),
|
||||||
@"colorThemeDark": @(IBGColorThemeDark),
|
@"colorThemeDark": @(IBGColorThemeDark),
|
||||||
|
|
||||||
|
@"enabledWithRequiredFields": @(IBGExtendedBugReportModeEnabledWithRequiredFields),
|
||||||
|
@"enabledWithOptionalFields": @(IBGExtendedBugReportModeEnabledWithOptionalFields),
|
||||||
|
@"disabled": @(IBGExtendedBugReportModeDisabled),
|
||||||
|
|
||||||
@"shakeHint": @(IBGStringShakeHint),
|
@"shakeHint": @(IBGStringShakeHint),
|
||||||
@"swipeHint": @(IBGStringSwipeHint),
|
@"swipeHint": @(IBGStringSwipeHint),
|
||||||
@"edgeSwipeStartHint": @(IBGStringEdgeSwipeStartHint),
|
@"edgeSwipeStartHint": @(IBGStringEdgeSwipeStartHint),
|
||||||
|
@ -40,6 +40,12 @@ RCT_ENUM_CONVERTER(IBGUserStepsMode, (@{
|
|||||||
@"reproStepsEnabledWithNoScreenshot": @(IBGUserStepsModeEnabledWithNoScreenshots)
|
@"reproStepsEnabledWithNoScreenshot": @(IBGUserStepsModeEnabledWithNoScreenshots)
|
||||||
}), IBGUserStepsModeEnable, integerValue)
|
}), IBGUserStepsModeEnable, integerValue)
|
||||||
|
|
||||||
|
RCT_ENUM_CONVERTER(IBGExtendedBugReportMode, (@{
|
||||||
|
@"enabledWithRequiredFields": @(IBGExtendedBugReportModeEnabledWithRequiredFields),
|
||||||
|
@"enabledWithOptionalFields": @(IBGExtendedBugReportModeEnabledWithOptionalFields),
|
||||||
|
@"disabled": @(IBGExtendedBugReportModeDisabled)
|
||||||
|
}), IBGExtendedBugReportModeDisabled, integerValue)
|
||||||
|
|
||||||
|
|
||||||
RCT_ENUM_CONVERTER(IBGReportType, (@{
|
RCT_ENUM_CONVERTER(IBGReportType, (@{
|
||||||
@"reportTypeBug": @(IBGReportTypeBug),
|
@"reportTypeBug": @(IBGReportTypeBug),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user