Skip to content

Commit f162689

Browse files
Expose StringToKey Strings
1 parent a53e226 commit f162689

File tree

2 files changed

+27
-1
lines changed

2 files changed

+27
-1
lines changed

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

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,8 @@ public class RNInstabugReactnativeModule extends ReactContextBaseJavaModule {
9292
private final String REPORT_SUCCESSFULLY_SENT = "thankYouText";
9393
private final String VIDEO_PLAYER_TITLE = "video";
9494

95+
private final String CONVERSATION_TEXT_FIELD_HINT = "conversationTextFieldHint";
96+
9597
private Application androidApplication;
9698
private Instabug mInstabug;
9799
private InstabugInvocationEvent invocationEvent;
@@ -919,6 +921,29 @@ public Map<String, Object> getConstants() {
919921
constants.put("localeSwedish", LOCALE_SWEDISH);
920922
constants.put("localeTurkish", LOCALE_TURKISH);
921923

924+
constants.put("shakeHint", SHAKE_HINT);
925+
constants.put("swipeHint", SWIPE_HINT);
926+
constants.put("invalidEmailMessage", INVALID_EMAIL_MESSAGE);
927+
constants.put("invalidCommentMessage", INVALID_COMMENT_MESSAGE);
928+
constants.put("emailFieldHint", EMAIL_FIELD_HINT);
929+
constants.put("commentFieldHintForBugReport", COMMENT_FIELD_HINT_FOR_BUG_REPORT);
930+
constants.put("commentFieldHintForFeedback", COMMENT_FIELD_HINT_FOR_FEEDBACK);
931+
constants.put("invocationHeader", INVOCATION_HEADER);
932+
constants.put("talkToUs", START_CHATS);
933+
constants.put("reportBug", REPORT_BUG);
934+
constants.put("reportFeedback", REPORT_FEEDBACK);
935+
constants.put("conversationsHeaderTitle", CONVERSATIONS_LIST_TITLE);
936+
constants.put("addVoiceMessage", ADD_VOICE_MESSAGE);
937+
constants.put("addImageFromGallery", ADD_IMAGE_FROM_GALLERY);
938+
constants.put("addExtraScreenshot", ADD_EXTRA_SCREENSHOT);
939+
constants.put("addVideoMessage", ADD_VIDEO);
940+
constants.put("audioRecordingPermissionDeniedMessage", AUDIO_RECORDING_PERMISSION_DENIED);
941+
constants.put("recordingMessageToHoldText", VOICE_MESSAGE_PRESS_AND_HOLD_TO_RECORD);
942+
constants.put("recordingMessageToReleaseText", VOICE_MESSAGE_RELEASE_TO_ATTACH);
943+
constants.put("thankYouText", REPORT_SUCCESSFULLY_SENT);
944+
constants.put("video", VIDEO_PLAYER_TITLE);
945+
constants.put("conversationTextFieldHint", CONVERSATION_TEXT_FIELD_HINT);
946+
922947

923948
return constants;
924949
}

index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -829,6 +829,7 @@ module.exports = {
829829
chatsHeaderTitle: Instabug.chatsHeaderTitle,
830830
team: Instabug.team,
831831
messageNotification: Instabug.messageNotification,
832-
messagesNotificationAndOthers: Instabug.messagesNotificationAndOthers
832+
messagesNotificationAndOthers: Instabug.messagesNotificationAndOthers,
833+
conversationTextFieldHint: Instabug.conversationTextFieldHint
833834
}
834835
};

0 commit comments

Comments
 (0)