@umituz/react-native-settings 4.21.1 → 4.21.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@umituz/react-native-settings",
3
- "version": "4.21.1",
3
+ "version": "4.21.2",
4
4
  "description": "Complete settings hub for React Native apps - consolidated package with settings, about, legal, appearance, feedback, FAQs, rating, and gamification",
5
5
  "main": "./src/index.ts",
6
6
  "types": "./src/index.ts",
@@ -58,15 +58,15 @@ export function createFeedback(
58
58
  };
59
59
  }
60
60
 
61
+ /**
62
+ * Get feedback type label
63
+ * @deprecated Use translation keys instead: `feedback.type.${type}`
64
+ * This function is kept for backward compatibility but should not be used.
65
+ * Use t(`feedback.type.${type}`) from useLocalization() instead.
66
+ */
61
67
  export function getFeedbackTypeLabel(type: FeedbackType): string {
62
- const labels: Record<FeedbackType, string> = {
63
- general: 'General Feedback',
64
- bug_report: 'Bug Report',
65
- feature_request: 'Feature Request',
66
- improvement: 'Improvement',
67
- other: 'Other',
68
- };
69
- return labels[type] || 'Unknown';
68
+ // Return type key for translation
69
+ return type;
70
70
  }
71
71
 
72
72
  export function getFeedbackTypeEmoji(type: FeedbackType): string {