@umituz/react-native-settings 4.20.43 → 4.20.44
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.20.
|
|
3
|
+
"version": "4.20.44",
|
|
4
4
|
"description": "Complete settings hub for React Native apps - consolidated package with settings, about, legal, appearance, feedback, FAQs, and rating",
|
|
5
5
|
"main": "./src/index.ts",
|
|
6
6
|
"types": "./src/index.ts",
|
|
@@ -68,34 +68,33 @@ export const SettingsStackNavigator: React.FC<SettingsStackNavigatorProps> = ({
|
|
|
68
68
|
return Wrapper;
|
|
69
69
|
}, [config, appInfo.version, showUserProfile, userProfile, devSettings, customSections]);
|
|
70
70
|
|
|
71
|
-
const
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
)
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
}, [t]);
|
|
71
|
+
const notificationTranslations = useMemo(
|
|
72
|
+
() => ({
|
|
73
|
+
screenTitle: t("settings.notifications.title"),
|
|
74
|
+
masterToggleTitle: t("settings.notifications.masterToggleTitle"),
|
|
75
|
+
masterToggleDescription: t("settings.notifications.masterToggleDescription"),
|
|
76
|
+
soundTitle: t("settings.notifications.soundTitle"),
|
|
77
|
+
soundDescription: t("settings.notifications.soundDescription"),
|
|
78
|
+
vibrationTitle: t("settings.notifications.vibrationTitle"),
|
|
79
|
+
vibrationDescription: t("settings.notifications.vibrationDescription"),
|
|
80
|
+
remindersTitle: t("settings.notifications.remindersTitle"),
|
|
81
|
+
remindersDescription: t("settings.notifications.remindersDescription"),
|
|
82
|
+
quietHoursTitle: t("settings.notifications.quietHoursTitle"),
|
|
83
|
+
quietHoursDescription: t("settings.notifications.quietHoursDescription"),
|
|
84
|
+
}),
|
|
85
|
+
[t]
|
|
86
|
+
);
|
|
87
|
+
|
|
88
|
+
const quietHoursTranslations = useMemo(
|
|
89
|
+
() => ({
|
|
90
|
+
title: t("settings.notifications.quietHours.title"),
|
|
91
|
+
description: t("settings.notifications.quietHours.description"),
|
|
92
|
+
startTimeLabel: t("settings.notifications.quietHours.startTimeLabel"),
|
|
93
|
+
endTimeLabel: t("settings.notifications.quietHours.endTimeLabel"),
|
|
94
|
+
enabledLabel: t("settings.notifications.quietHours.enabledLabel"),
|
|
95
|
+
}),
|
|
96
|
+
[t]
|
|
97
|
+
);
|
|
99
98
|
|
|
100
99
|
const LegalScreenWrapper = useMemo(() => {
|
|
101
100
|
const Wrapper = () => (
|
|
@@ -164,13 +163,19 @@ export const SettingsStackNavigator: React.FC<SettingsStackNavigatorProps> = ({
|
|
|
164
163
|
|
|
165
164
|
<Stack.Screen
|
|
166
165
|
name="Notifications"
|
|
167
|
-
component={NotificationSettingsWrapper}
|
|
168
166
|
options={{
|
|
169
167
|
headerShown: true,
|
|
170
168
|
headerTitle: t("settings.notifications.title"),
|
|
171
169
|
headerTitleAlign: "center",
|
|
172
170
|
}}
|
|
173
|
-
|
|
171
|
+
>
|
|
172
|
+
{() => (
|
|
173
|
+
<NotificationSettingsScreen
|
|
174
|
+
translations={notificationTranslations}
|
|
175
|
+
quietHoursTranslations={quietHoursTranslations}
|
|
176
|
+
/>
|
|
177
|
+
)}
|
|
178
|
+
</Stack.Screen>
|
|
174
179
|
|
|
175
180
|
{faqData && faqData.categories.length > 0 && (
|
|
176
181
|
<Stack.Screen
|