@umituz/react-native-settings 4.20.37 → 4.20.39

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.37",
3
+ "version": "4.20.39",
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",
@@ -9,6 +9,7 @@ import React, { useMemo } from "react";
9
9
  import { createStackNavigator } from "@react-navigation/stack";
10
10
  import { useAppDesignTokens } from "@umituz/react-native-design-system";
11
11
  import { useLocalization } from "@umituz/react-native-localization";
12
+ import { NotificationSettingsScreen } from "@umituz/react-native-notifications";
12
13
  import { SettingsScreen } from "../screens/SettingsScreen";
13
14
  import { AppearanceScreen } from "../screens/AppearanceScreen";
14
15
  import { LegalScreen } from "../../domains/legal";
@@ -67,6 +68,35 @@ export const SettingsStackNavigator: React.FC<SettingsStackNavigatorProps> = ({
67
68
  return Wrapper;
68
69
  }, [config, appInfo.version, showUserProfile, userProfile, devSettings, customSections]);
69
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
+
70
100
  const LegalScreenWrapper = useMemo(() => {
71
101
  const Wrapper = () => (
72
102
  <LegalScreen
@@ -132,6 +162,16 @@ export const SettingsStackNavigator: React.FC<SettingsStackNavigatorProps> = ({
132
162
  }}
133
163
  />
134
164
 
165
+ <Stack.Screen
166
+ name="Notifications"
167
+ component={NotificationSettingsWrapper}
168
+ options={{
169
+ headerShown: true,
170
+ headerTitle: t("settings.notifications.title"),
171
+ headerTitleAlign: "center",
172
+ }}
173
+ />
174
+
135
175
  {faqData && faqData.categories.length > 0 && (
136
176
  <Stack.Screen
137
177
  name="FAQ"
@@ -39,6 +39,7 @@ export type SettingsStackParamList = {
39
39
  Appearance: undefined;
40
40
  About: undefined;
41
41
  Legal: undefined;
42
+ Notifications: undefined;
42
43
  FAQ: undefined;
43
44
  };
44
45