Skip to content

Commit f8a5951

Browse files
committed
🐛 Fix a bug where the thankYouAlertText enum was not mapped for iOS
1 parent d1b9d41 commit f8a5951

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1105,6 +1105,7 @@ module.exports = {
11051105
messageNotification: Instabug.messageNotification,
11061106
messagesNotificationAndOthers: Instabug.messagesNotificationAndOthers,
11071107
conversationTextFieldHint: Instabug.conversationTextFieldHint,
1108-
collectingDataText: Instabug.collectingDataText
1108+
collectingDataText: Instabug.collectingDataText,
1109+
...Platform.OS === 'ios' && {thankYouAlertText: Instabug.thankYouAlertText},
11091110
}
11101111
};

ios/RNInstabug/InstabugReactBridge.m

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -496,7 +496,8 @@ - (NSDictionary *)constantsToExport
496496
@"image": @(IBGStringImage),
497497
@"surveyEnterYourAnswer": @(IBGStringSurveyEnterYourAnswerPlaceholder),
498498
@"videPressRecord": @(IBGStringVideoPressRecordTitle),
499-
@"collectingDataText": @(IBGStringCollectingDataText)
499+
@"collectingDataText": @(IBGStringCollectingDataText),
500+
@"thankYouAlertText": @(IBGStringThankYouAlertText)
500501
};
501502
};
502503

ios/RNInstabug/RCTConvert+InstabugEnums.m

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,7 @@ @implementation RCTConvert (InstabugEnums)
130130
@"image": @(IBGStringImage),
131131
@"surveyEnterYourAnswer": @(IBGStringSurveyEnterYourAnswerPlaceholder),
132132
@"videPressRecord": @(IBGStringVideoPressRecordTitle),
133-
@"collectingDataText": @(IBGStringCollectingDataText)
133+
@"collectingDataText": @(IBGStringCollectingDataText),
134+
@"thankYouAlertText": @(IBGStringThankYouAlertText)
134135
}), IBGStringShakeHint, integerValue);
135136
@end

0 commit comments

Comments
 (0)