Skip to content

Commit a383aaa

Browse files
committed
🐛 Fix a bug where the success dialog header enum wasn't mapped for Android
1 parent 60f32e2 commit a383aaa

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

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

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,8 @@ public class RNInstabugReactnativeModule extends ReactContextBaseJavaModule {
131131
private final String VOICE_MESSAGE_RELEASE_TO_ATTACH = "recordingMessageToReleaseText";
132132

133133
private final String REPORT_SUCCESSFULLY_SENT = "thankYouText";
134+
private final String THANK_YOU_ALERT_TEXT = "thankYouAlertText";
135+
134136
private final String VIDEO_PLAYER_TITLE = "video";
135137

136138
private final String CONVERSATION_TEXT_FIELD_HINT = "conversationTextFieldHint";
@@ -1432,9 +1434,11 @@ private InstabugCustomTextPlaceHolder.Key getStringToKeyConstant(String key) {
14321434
case CONVERSATION_TEXT_FIELD_HINT:
14331435
return InstabugCustomTextPlaceHolder.Key.CONVERSATION_TEXT_FIELD_HINT;
14341436
case REPORT_SUCCESSFULLY_SENT:
1435-
return InstabugCustomTextPlaceHolder.Key.REPORT_SUCCESSFULLY_SENT;
1437+
return InstabugCustomTextPlaceHolder.Key.SUCCESS_DIALOG_HEADER;
14361438
case VIDEO_PLAYER_TITLE:
14371439
return InstabugCustomTextPlaceHolder.Key.VIDEO_PLAYER_TITLE;
1440+
case THANK_YOU_ALERT_TEXT:
1441+
return InstabugCustomTextPlaceHolder.Key.REPORT_SUCCESSFULLY_SENT;
14381442
default:
14391443
return null;
14401444
}
@@ -1600,7 +1604,7 @@ public Map<String, Object> getConstants() {
16001604
constants.put("thankYouText", REPORT_SUCCESSFULLY_SENT);
16011605
constants.put("video", VIDEO_PLAYER_TITLE);
16021606
constants.put("conversationTextFieldHint", CONVERSATION_TEXT_FIELD_HINT);
1603-
1607+
constants.put("thankYouAlertText", THANK_YOU_ALERT_TEXT);
16041608

16051609
return constants;
16061610
}

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1114,6 +1114,6 @@ module.exports = {
11141114
messagesNotificationAndOthers: Instabug.messagesNotificationAndOthers,
11151115
conversationTextFieldHint: Instabug.conversationTextFieldHint,
11161116
collectingDataText: Instabug.collectingDataText,
1117-
...Platform.OS === 'ios' && {thankYouAlertText: Instabug.thankYouAlertText},
1117+
thankYouAlertText: Instabug.thankYouAlertText,
11181118
}
11191119
};

0 commit comments

Comments
 (0)