@umituz/react-native-settings 4.20.38 → 4.20.40
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.40",
|
|
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,6 +68,35 @@ export const SettingsStackNavigator: React.FC<SettingsStackNavigatorProps> = ({
|
|
|
68
68
|
return Wrapper;
|
|
69
69
|
}, [config, appInfo.version, showUserProfile, userProfile, devSettings, customSections]);
|
|
70
70
|
|
|
71
|
+
const NotificationSettingsWrapper = useMemo(() => {
|
|
72
|
+
const Wrapper = () => (
|
|
73
|
+
<NotificationSettingsScreen
|
|
74
|
+
translations={{
|
|
75
|
+
screenTitle: t("settings.notifications.title"),
|
|
76
|
+
masterToggleTitle: t("settings.notifications.masterToggleTitle"),
|
|
77
|
+
masterToggleDescription: t("settings.notifications.masterToggleDescription"),
|
|
78
|
+
soundTitle: t("settings.notifications.soundTitle"),
|
|
79
|
+
soundDescription: t("settings.notifications.soundDescription"),
|
|
80
|
+
vibrationTitle: t("settings.notifications.vibrationTitle"),
|
|
81
|
+
vibrationDescription: t("settings.notifications.vibrationDescription"),
|
|
82
|
+
remindersTitle: t("settings.notifications.remindersTitle"),
|
|
83
|
+
remindersDescription: t("settings.notifications.remindersDescription"),
|
|
84
|
+
quietHoursTitle: t("settings.notifications.quietHoursTitle"),
|
|
85
|
+
quietHoursDescription: t("settings.notifications.quietHoursDescription"),
|
|
86
|
+
}}
|
|
87
|
+
quietHoursTranslations={{
|
|
88
|
+
title: t("settings.notifications.quietHours.title"),
|
|
89
|
+
description: t("settings.notifications.quietHours.description"),
|
|
90
|
+
startTimeLabel: t("settings.notifications.quietHours.startTimeLabel"),
|
|
91
|
+
endTimeLabel: t("settings.notifications.quietHours.endTimeLabel"),
|
|
92
|
+
enabledLabel: t("settings.notifications.quietHours.enabledLabel"),
|
|
93
|
+
}}
|
|
94
|
+
/>
|
|
95
|
+
);
|
|
96
|
+
Wrapper.displayName = "NotificationSettingsWrapper";
|
|
97
|
+
return Wrapper;
|
|
98
|
+
}, [t]);
|
|
99
|
+
|
|
71
100
|
const LegalScreenWrapper = useMemo(() => {
|
|
72
101
|
const Wrapper = () => (
|
|
73
102
|
<LegalScreen
|
|
@@ -98,7 +127,7 @@ export const SettingsStackNavigator: React.FC<SettingsStackNavigatorProps> = ({
|
|
|
98
127
|
return (
|
|
99
128
|
<Stack.Navigator screenOptions={screenOptions}>
|
|
100
129
|
<Stack.Screen
|
|
101
|
-
name="
|
|
130
|
+
name="SettingsMain"
|
|
102
131
|
component={SettingsScreenWrapper}
|
|
103
132
|
options={{ headerShown: false }}
|
|
104
133
|
/>
|
|
@@ -135,7 +164,7 @@ export const SettingsStackNavigator: React.FC<SettingsStackNavigatorProps> = ({
|
|
|
135
164
|
|
|
136
165
|
<Stack.Screen
|
|
137
166
|
name="Notifications"
|
|
138
|
-
component={
|
|
167
|
+
component={NotificationSettingsWrapper}
|
|
139
168
|
options={{
|
|
140
169
|
headerShown: true,
|
|
141
170
|
headerTitle: t("settings.notifications.title"),
|