@umituz/react-native-settings 5.2.32 → 5.2.34

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": "5.2.32",
3
+ "version": "5.2.34",
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",
@@ -66,7 +66,6 @@ export {
66
66
  useReminderById,
67
67
  useRemindersLoading,
68
68
  useRemindersInitialized,
69
- useNotifications, // Legacy compatibility
70
69
  } from './infrastructure/storage/UnifiedNotificationStore';
71
70
 
72
71
  // ============================================================================
@@ -5,9 +5,10 @@
5
5
 
6
6
  import React from 'react';
7
7
  import { View } from 'react-native';
8
- import {
9
- AtomicCard,
10
- ScreenLayout,
8
+ import {
9
+ AtomicCard,
10
+ AtomicDatePicker,
11
+ ScreenLayout,
11
12
  AtomicSpinner,
12
13
  NavigationHeader,
13
14
  useAppDesignTokens,
@@ -22,7 +23,6 @@ import { useReminders } from '../../infrastructure/storage/UnifiedNotificationSt
22
23
  import { useQuietHoursActions } from '../../quietHours/infrastructure/hooks/useQuietHoursActions';
23
24
  import type { NotificationSettingsTranslations, QuietHoursTranslations } from '../../infrastructure/services/types';
24
25
  import { createStyles } from './NotificationSettingsScreen.styles';
25
- import DateTimePicker from '@react-native-community/datetimepicker';
26
26
 
27
27
  export interface NotificationSettingsScreenProps {
28
28
  translations: NotificationSettingsTranslations;
@@ -67,9 +67,9 @@ export const NotificationSettingsScreen: React.FC<NotificationSettingsScreenProp
67
67
  return (
68
68
  <ScreenLayout
69
69
  header={
70
- <NavigationHeader
71
- title={headerTitle}
72
- onBackPress={() => navigation.goBack()}
70
+ <NavigationHeader
71
+ title={headerTitle}
72
+ onBackPress={() => navigation.goBack()}
73
73
  />
74
74
  }
75
75
  >
@@ -79,12 +79,12 @@ export const NotificationSettingsScreen: React.FC<NotificationSettingsScreenProp
79
79
  }
80
80
 
81
81
  return (
82
- <ScreenLayout
82
+ <ScreenLayout
83
83
  hideScrollIndicator
84
84
  header={
85
- <NavigationHeader
86
- title={headerTitle}
87
- onBackPress={() => navigation.goBack()}
85
+ <NavigationHeader
86
+ title={headerTitle}
87
+ onBackPress={() => navigation.goBack()}
88
88
  />
89
89
  }
90
90
  >
@@ -142,11 +142,12 @@ export const NotificationSettingsScreen: React.FC<NotificationSettingsScreenProp
142
142
  )}
143
143
  </View>
144
144
  {timePicker.pickerMode && (
145
- <DateTimePicker
145
+ <AtomicDatePicker
146
146
  value={timePicker.getPickerDate()}
147
147
  mode="time"
148
- is24Hour={true}
149
- onChange={timePicker.handleTimeChange}
148
+ onChange={(date) => {
149
+ timePicker.handleTimeChange({ type: 'set' }, date);
150
+ }}
150
151
  />
151
152
  )}
152
153
  </ScreenLayout>