@umituz/react-native-settings 4.23.102 → 4.23.104
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.
|
|
3
|
+
"version": "4.23.104",
|
|
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",
|
|
@@ -114,6 +114,37 @@ export const useSettingsScreenConfig = (
|
|
|
114
114
|
};
|
|
115
115
|
}
|
|
116
116
|
|
|
117
|
+
// Add subscription title and description from translations if available
|
|
118
|
+
if (config.subscription && typeof config.subscription === 'object') {
|
|
119
|
+
config.subscription = {
|
|
120
|
+
...config.subscription,
|
|
121
|
+
title: translations?.features?.subscription?.title || config.subscription.title || "Subscription",
|
|
122
|
+
description: translations?.features?.subscription?.description || config.subscription.description,
|
|
123
|
+
};
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
// Add gamification title and description
|
|
127
|
+
if (config.gamification) {
|
|
128
|
+
const existingConfig = typeof config.gamification === 'object' ? config.gamification : { enabled: true };
|
|
129
|
+
config.gamification = {
|
|
130
|
+
...existingConfig,
|
|
131
|
+
enabled: true,
|
|
132
|
+
title: translations?.features?.gamification?.title || (existingConfig as any).title || "Your Progress",
|
|
133
|
+
description: translations?.features?.gamification?.description || (existingConfig as any).description,
|
|
134
|
+
};
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
// Add videoTutorial title and description
|
|
138
|
+
if (config.videoTutorial) {
|
|
139
|
+
const existingConfig = typeof config.videoTutorial === 'object' ? config.videoTutorial : { enabled: true };
|
|
140
|
+
config.videoTutorial = {
|
|
141
|
+
...existingConfig,
|
|
142
|
+
enabled: true,
|
|
143
|
+
title: translations?.features?.videoTutorial?.title || (existingConfig as any).title || "Video Tutorials",
|
|
144
|
+
description: translations?.features?.videoTutorial?.description || (existingConfig as any).description,
|
|
145
|
+
};
|
|
146
|
+
}
|
|
147
|
+
|
|
117
148
|
return config;
|
|
118
149
|
}, [baseSettingsConfig, translations]);
|
|
119
150
|
|