Skip to content

Commit 6eba766

Browse files
✨ Add new string reportQuestion
1 parent abb52f9 commit 6eba766

File tree

5 files changed

+8
-2
lines changed

5 files changed

+8
-2
lines changed

android/src/main/java/com/instabug/reactlibrary/ArgsRegistry.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,7 @@ static void registerCustomTextPlaceHolderKeysArgs(Map<String, Object> args) {
171171
args.put("invalidCommentMessage", InstabugCustomTextPlaceHolder.Key.INVALID_COMMENT_MESSAGE);
172172
args.put("invocationHeader", InstabugCustomTextPlaceHolder.Key.INVOCATION_HEADER);
173173
args.put("startChats", InstabugCustomTextPlaceHolder.Key.START_CHATS);
174+
args.put("reportQuestion", InstabugCustomTextPlaceHolder.Key.REPORT_QUESTION);
174175
args.put("reportBug", InstabugCustomTextPlaceHolder.Key.REPORT_BUG);
175176
args.put("reportFeedback", InstabugCustomTextPlaceHolder.Key.REPORT_FEEDBACK);
176177
args.put("emailFieldHint", InstabugCustomTextPlaceHolder.Key.EMAIL_FIELD_HINT);
@@ -183,8 +184,6 @@ static void registerCustomTextPlaceHolderKeysArgs(Map<String, Object> args) {
183184
args.put("conversationsListTitle", InstabugCustomTextPlaceHolder.Key.CONVERSATIONS_LIST_TITLE);
184185
args.put("audioRecordingPermissionDenied", InstabugCustomTextPlaceHolder.Key.AUDIO_RECORDING_PERMISSION_DENIED);
185186
args.put("conversationTextFieldHint", InstabugCustomTextPlaceHolder.Key.CONVERSATION_TEXT_FIELD_HINT);
186-
// args.put("bugReportHeader", InstabugCustomTextPlaceHolder.Key.BUG_REPORT_HEADER);
187-
// args.put("feedbackReportHeader", InstabugCustomTextPlaceHolder.Key.FEEDBACK_REPORT_HEADER);
188187
args.put("voiceMessagePressAndHoldToRecord", InstabugCustomTextPlaceHolder.Key.VOICE_MESSAGE_PRESS_AND_HOLD_TO_RECORD);
189188
args.put("voiceMessageReleaseToAttach", InstabugCustomTextPlaceHolder.Key.VOICE_MESSAGE_RELEASE_TO_ATTACH);
190189
args.put("reportSuccessfullySent", InstabugCustomTextPlaceHolder.Key.REPORT_SUCCESSFULLY_SENT);

android/src/main/java/com/instabug/reactlibrary/RNInstabugReactnativeModule.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,7 @@ public class RNInstabugReactnativeModule extends ReactContextBaseJavaModule {
158158

159159
private final String INVOCATION_HEADER = "invocationHeader";
160160
private final String START_CHATS = "startChats";
161+
private final String REPORT_QUESTION = "reportQuestion";
161162
private final String REPORT_BUG = "reportBug";
162163
private final String REPORT_FEEDBACK = "reportFeedback";
163164

@@ -2264,6 +2265,8 @@ private InstabugCustomTextPlaceHolder.Key getStringToKeyConstant(String key) {
22642265
return InstabugCustomTextPlaceHolder.Key.INVOCATION_HEADER;
22652266
case START_CHATS:
22662267
return InstabugCustomTextPlaceHolder.Key.START_CHATS;
2268+
case REPORT_QUESTION:
2269+
return InstabugCustomTextPlaceHolder.Key.REPORT_QUESTION;
22672270
case REPORT_BUG:
22682271
return InstabugCustomTextPlaceHolder.Key.REPORT_BUG;
22692272
case REPORT_FEEDBACK:
@@ -2454,6 +2457,7 @@ public Map<String, Object> getConstants() {
24542457
constants.put("commentFieldHintForQuestion", COMMENT_FIELD_HINT_FOR_QUESTION);
24552458
constants.put("invocationHeader", INVOCATION_HEADER);
24562459
constants.put("startChats", START_CHATS);
2460+
constants.put("reportQuestion", REPORT_QUESTION);
24572461
constants.put("reportBug", REPORT_BUG);
24582462
constants.put("reportFeedback", REPORT_FEEDBACK);
24592463
constants.put("conversationsHeaderTitle", CONVERSATIONS_LIST_TITLE);

index.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -293,6 +293,7 @@ export enum strings {
293293
invalidCommentTitle,
294294
invocationHeader,
295295
talkToUs,
296+
reportQuestion,
296297
reportBug,
297298
reportFeedback,
298299
emailFieldHint,

index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -919,6 +919,7 @@ const InstabugModule = {
919919
invalidCommentTitle: Instabug.invalidCommentTitle,
920920
invocationHeader: Instabug.invocationHeader,
921921
startChats: Instabug.startChats,
922+
reportQuestion: Instabug.reportQuestion,
922923
reportBug: Instabug.reportBug,
923924
reportFeedback: Instabug.reportFeedback,
924925
emailFieldHint: Instabug.emailFieldHint,

ios/RNInstabug/InstabugReactBridge.m

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -476,6 +476,7 @@ - (NSDictionary *)constantsToExport
476476
@"invocationHeader": kIBGInvocationTitleStringName,
477477
//@"talkToUs": kIBGTalkToUsStringName,
478478
@"startChats": kIBGAskAQuestionStringName,
479+
@"reportQuestion": kIBGAskAQuestionStringName,
479480
@"reportBug": kIBGReportBugStringName,
480481
@"reportFeedback": kIBGReportFeedbackStringName,
481482
@"emailFieldHint": kIBGEmailFieldPlaceholderStringName,

0 commit comments

Comments
 (0)