@umituz/react-native-settings 4.23.98 → 4.23.99

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.23.98",
3
+ "version": "4.23.99",
4
4
  "description": "Complete settings hub for React Native apps - consolidated package with settings, localization, about, legal, appearance, feedback, FAQs, rating, and gamification",
5
5
  "main": "./src/index.ts",
6
6
  "types": "./src/index.ts",
@@ -90,10 +90,23 @@ export const useSettingsScreenConfig = (
90
90
  },
91
91
  });
92
92
 
93
- const settingsConfig = useMemo(() => ({
94
- ...baseSettingsConfig,
95
- translations,
96
- }), [baseSettingsConfig, translations]);
93
+ const settingsConfig = useMemo(() => {
94
+ const config = {
95
+ ...baseSettingsConfig,
96
+ translations,
97
+ };
98
+
99
+ // Add subscription title and description from translations if available
100
+ if (config.subscription && typeof config.subscription === 'object' && translations?.features?.subscription) {
101
+ config.subscription = {
102
+ ...config.subscription,
103
+ title: translations.features.subscription.title,
104
+ description: translations.features.subscription.description,
105
+ };
106
+ }
107
+
108
+ return config;
109
+ }, [baseSettingsConfig, translations]);
97
110
 
98
111
  const userProfile = useMemo(() => createUserProfileDisplay({
99
112
  profileData: userProfileData,
@@ -64,6 +64,11 @@ export interface SettingsTranslations {
64
64
  guest?: string;
65
65
  anonymousName?: string;
66
66
  signIn?: string;
67
+ signInDescription?: string;
68
+ anonymousBenefits?: {
69
+ title?: string;
70
+ items?: string[];
71
+ };
67
72
  };
68
73
  sections?: {
69
74
  app?: string;
@@ -73,8 +78,20 @@ export interface SettingsTranslations {
73
78
  subscription?: string;
74
79
  };
75
80
  features?: {
76
- appearance?: { title?: string; description?: string };
77
- language?: { title?: string };
81
+ appearance?: {
82
+ title?: string;
83
+ description?: string;
84
+ themeModes?: {
85
+ light?: string;
86
+ dark?: string;
87
+ auto?: string;
88
+ };
89
+ };
90
+ language?: {
91
+ title?: string;
92
+ description?: string;
93
+ searchPlaceholder?: string;
94
+ };
78
95
  notifications?: {
79
96
  title?: string;
80
97
  description?: string;
@@ -96,7 +113,17 @@ export interface SettingsTranslations {
96
113
  enabledLabel?: string;
97
114
  };
98
115
  };
99
- about?: { title?: string; description?: string };
116
+ about?: {
117
+ title?: string;
118
+ description?: string;
119
+ contact?: string;
120
+ more?: string;
121
+ developer?: string;
122
+ email?: string;
123
+ website?: string;
124
+ moreApps?: string;
125
+ versionPrefix?: string;
126
+ };
100
127
  legal?: {
101
128
  title?: string;
102
129
  description?: string;
@@ -121,6 +148,10 @@ export interface SettingsTranslations {
121
148
  languageSelection?: {
122
149
  searchPlaceholder?: string;
123
150
  };
151
+ subscription?: {
152
+ title?: string;
153
+ description?: string;
154
+ };
124
155
  videoTutorial?: {
125
156
  title?: string;
126
157
  description?: string;
@@ -147,6 +178,8 @@ export interface SettingsTranslations {
147
178
  errors?: {
148
179
  common?: string;
149
180
  unknown?: string;
181
+ unknownError?: string;
182
+ appStoreUrlMissing?: string;
150
183
  appStoreUrlNotConfigured?: string;
151
184
  unableToOpenAppStore?: string;
152
185
  failedToOpenAppStore?: string;