@umituz/react-native-settings 4.23.102 → 4.23.103
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.103",
|
|
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,26 @@ export const useSettingsScreenConfig = (
|
|
|
114
114
|
};
|
|
115
115
|
}
|
|
116
116
|
|
|
117
|
+
// Add gamification title and description
|
|
118
|
+
if ((config.gamification === true || (config.gamification && typeof config.gamification === 'object')) && translations?.features?.gamification) {
|
|
119
|
+
const existingConfig = typeof config.gamification === 'object' ? config.gamification : { enabled: true, storageKey: '' };
|
|
120
|
+
config.gamification = {
|
|
121
|
+
...existingConfig,
|
|
122
|
+
title: translations.features.gamification.title,
|
|
123
|
+
description: translations.features.gamification.description,
|
|
124
|
+
};
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
// Add videoTutorial title and description
|
|
128
|
+
if ((config.videoTutorial === true || (config.videoTutorial && typeof config.videoTutorial === 'object')) && translations?.features?.videoTutorial) {
|
|
129
|
+
const existingConfig = typeof config.videoTutorial === 'object' ? config.videoTutorial : { enabled: true };
|
|
130
|
+
config.videoTutorial = {
|
|
131
|
+
...existingConfig,
|
|
132
|
+
title: translations.features.videoTutorial.title,
|
|
133
|
+
description: translations.features.videoTutorial.description,
|
|
134
|
+
};
|
|
135
|
+
}
|
|
136
|
+
|
|
117
137
|
return config;
|
|
118
138
|
}, [baseSettingsConfig, translations]);
|
|
119
139
|
|