@umituz/react-native-notifications 1.3.0 → 1.3.1

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-notifications",
3
- "version": "1.3.0",
3
+ "version": "1.3.1",
4
4
  "description": "Offline-first local notifications system for React Native apps using expo-notifications",
5
5
  "main": "./src/index.ts",
6
6
  "types": "./src/index.ts",
@@ -15,28 +15,28 @@ export const DEFAULT_TIME_PRESETS: TimePreset[] = [
15
15
  hour: 8,
16
16
  minute: 0,
17
17
  labelKey: 'notifications.presets.morning',
18
- iconName: 'sunrise',
18
+ iconName: 'sunny',
19
19
  },
20
20
  {
21
21
  id: 'noon',
22
22
  hour: 12,
23
23
  minute: 0,
24
24
  labelKey: 'notifications.presets.noon',
25
- iconName: 'sun',
25
+ iconName: 'sunny',
26
26
  },
27
27
  {
28
28
  id: 'afternoon',
29
29
  hour: 15,
30
30
  minute: 0,
31
31
  labelKey: 'notifications.presets.afternoon',
32
- iconName: 'cloud-sun',
32
+ iconName: 'partly-sunny',
33
33
  },
34
34
  {
35
35
  id: 'evening',
36
36
  hour: 18,
37
37
  minute: 0,
38
38
  labelKey: 'notifications.presets.evening',
39
- iconName: 'sunset',
39
+ iconName: 'partly-sunny',
40
40
  },
41
41
  {
42
42
  id: 'night',
@@ -71,12 +71,12 @@ export const FREQUENCY_OPTIONS: FrequencyOption[] = [
71
71
  {
72
72
  id: 'weekly',
73
73
  labelKey: 'notifications.frequency.weekly',
74
- iconName: 'calendar-days',
74
+ iconName: 'calendar',
75
75
  },
76
76
  {
77
77
  id: 'monthly',
78
78
  labelKey: 'notifications.frequency.monthly',
79
- iconName: 'calendar-range',
79
+ iconName: 'calendar',
80
80
  },
81
81
  ];
82
82
 
@@ -54,7 +54,7 @@ export const QuietHoursCard: React.FC<QuietHoursCardProps> = ({
54
54
  </TouchableOpacity>
55
55
 
56
56
  <View style={styles.timeSeparator}>
57
- <AtomicIcon name="arrow-right" size="sm" color="textSecondary" />
57
+ <AtomicIcon name="arrow-forward" size="sm" color="textSecondary" />
58
58
  </View>
59
59
 
60
60
  <TouchableOpacity style={styles.timeButton} onPress={onEndTimePress} activeOpacity={0.7}>
@@ -32,10 +32,10 @@ const getFrequencyIcon = (frequency: ReminderFrequency): string => {
32
32
  const icons: Record<ReminderFrequency, string> = {
33
33
  once: 'calendar',
34
34
  daily: 'repeat',
35
- weekly: 'calendar-days',
36
- monthly: 'calendar-range',
35
+ weekly: 'calendar',
36
+ monthly: 'calendar',
37
37
  };
38
- return icons[frequency] || 'bell';
38
+ return icons[frequency] || 'notifications';
39
39
  };
40
40
 
41
41
  export const ReminderItem: React.FC<ReminderItemProps> = ({
@@ -85,7 +85,7 @@ export const ReminderItem: React.FC<ReminderItemProps> = ({
85
85
 
86
86
  <View style={styles.actions}>
87
87
  <TouchableOpacity style={styles.deleteButton} onPress={() => onDelete(reminder.id)}>
88
- <AtomicIcon name="trash-2" size="sm" color="error" />
88
+ <AtomicIcon name="trash" size="sm" color="error" />
89
89
  </TouchableOpacity>
90
90
  <AtomicSwitch value={reminder.enabled} onValueChange={() => onToggle(reminder.id)} />
91
91
  </View>
@@ -68,7 +68,7 @@ export const TimePresetSelector: React.FC<TimePresetSelectorProps> = ({
68
68
  onPress={onSelectCustom}
69
69
  activeOpacity={0.7}
70
70
  >
71
- <AtomicIcon name="clock" size="md" color={isCustomSelected ? 'surface' : 'textSecondary'} />
71
+ <AtomicIcon name="time" size="md" color={isCustomSelected ? 'surface' : 'textSecondary'} />
72
72
  <AtomicText type="bodySmall" style={isCustomSelected ? styles.selectedText : styles.text}>
73
73
  {customLabel}
74
74
  </AtomicText>
@@ -77,7 +77,7 @@ export const NotificationSettingsScreen: React.FC<NotificationSettingsScreenProp
77
77
  <ScrollView style={styles.scrollView} showsVerticalScrollIndicator={false}>
78
78
  <AtomicCard style={styles.card}>
79
79
  <SettingRow
80
- iconName="bell"
80
+ iconName="notifications"
81
81
  title={translations.masterToggleTitle}
82
82
  description={translations.masterToggleDescription}
83
83
  value={preferences.enabled}
@@ -90,7 +90,7 @@ export const NotificationSettingsScreen: React.FC<NotificationSettingsScreenProp
90
90
  <>
91
91
  <AtomicCard style={styles.card}>
92
92
  <SettingRow
93
- iconName="volume-2"
93
+ iconName="volume-high"
94
94
  title={translations.soundTitle}
95
95
  description={translations.soundDescription}
96
96
  value={preferences.sound}
@@ -99,7 +99,7 @@ export const NotificationSettingsScreen: React.FC<NotificationSettingsScreenProp
99
99
  />
100
100
  <View style={styles.divider} />
101
101
  <SettingRow
102
- iconName="smartphone"
102
+ iconName="phone-portrait"
103
103
  title={translations.vibrationTitle}
104
104
  description={translations.vibrationDescription}
105
105
  value={preferences.vibration}
@@ -111,7 +111,7 @@ export const NotificationSettingsScreen: React.FC<NotificationSettingsScreenProp
111
111
  <AtomicCard style={styles.card}>
112
112
  <TouchableOpacity style={styles.navRow} onPress={onRemindersPress} activeOpacity={0.7}>
113
113
  <View style={styles.iconContainer}>
114
- <AtomicIcon name="clock" size="md" color="primary" />
114
+ <AtomicIcon name="time" size="md" color="primary" />
115
115
  </View>
116
116
  <View style={styles.textContainer}>
117
117
  <AtomicText type="bodyLarge">{translations.remindersTitle}</AtomicText>
@@ -122,7 +122,7 @@ export const NotificationSettingsScreen: React.FC<NotificationSettingsScreenProp
122
122
  <AtomicText type="bodySmall" style={styles.badgeText}>{reminders.length}</AtomicText>
123
123
  </View>
124
124
  )}
125
- <AtomicIcon name="chevron-right" size="md" color="textSecondary" />
125
+ <AtomicIcon name="chevron-forward" size="md" color="textSecondary" />
126
126
  </TouchableOpacity>
127
127
  </AtomicCard>
128
128
 
@@ -25,7 +25,7 @@ export interface NotificationsScreenProps {
25
25
 
26
26
  export const NotificationsScreen: React.FC<NotificationsScreenProps> = ({
27
27
  translations,
28
- iconName = 'bell',
28
+ iconName = 'notifications',
29
29
  iconColor = 'primary',
30
30
  testID = 'notifications-screen',
31
31
  }) => {
@@ -65,7 +65,7 @@ export const ReminderListScreen: React.FC<ReminderListScreenProps> = ({
65
65
  const renderEmpty = useCallback(() => (
66
66
  <View style={styles.emptyContainer}>
67
67
  <View style={styles.emptyIconContainer}>
68
- <AtomicIcon name="bell-off" size="xl" color="textSecondary" />
68
+ <AtomicIcon name="notifications-off" size="xl" color="textSecondary" />
69
69
  </View>
70
70
  <AtomicText type="bodyLarge" style={styles.emptyTitle}>{translations.emptyTitle}</AtomicText>
71
71
  <AtomicText type="bodySmall" style={styles.emptyDescription}>{translations.emptyDescription}</AtomicText>
@@ -97,7 +97,7 @@ export const ReminderListScreen: React.FC<ReminderListScreenProps> = ({
97
97
 
98
98
  {canAddMore && (
99
99
  <TouchableOpacity style={styles.fab} onPress={onAddPress} activeOpacity={0.8}>
100
- <AtomicIcon name="plus" size="md" color="surface" />
100
+ <AtomicIcon name="add" size="md" color="surface" />
101
101
  <AtomicText type="bodyMedium" style={styles.fabText}>{translations.addButtonLabel}</AtomicText>
102
102
  </TouchableOpacity>
103
103
  )}