@umituz/react-native-notifications 1.5.6 → 1.5.8
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.5.
|
|
3
|
+
"version": "1.5.8",
|
|
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",
|
|
@@ -24,25 +24,26 @@
|
|
|
24
24
|
"license": "MIT",
|
|
25
25
|
"repository": {
|
|
26
26
|
"type": "git",
|
|
27
|
-
"url": "https://github.com/umituz/react-native-notifications"
|
|
27
|
+
"url": "git+https://github.com/umituz/react-native-notifications.git"
|
|
28
28
|
},
|
|
29
29
|
"peerDependencies": {
|
|
30
30
|
"@react-native-async-storage/async-storage": ">=2.0.0",
|
|
31
31
|
"@react-native-community/datetimepicker": ">=8.0.0",
|
|
32
32
|
"@umituz/react-native-design-system": "latest",
|
|
33
33
|
"@umituz/react-native-haptics": "latest",
|
|
34
|
+
"@umituz/react-native-storage": "latest",
|
|
34
35
|
"expo-device": ">=6.0.0",
|
|
35
36
|
"expo-haptics": ">=15.0.0",
|
|
36
37
|
"expo-linear-gradient": ">=14.0.0",
|
|
37
38
|
"expo-notifications": ">=0.28.0",
|
|
38
39
|
"react": ">=18.2.0",
|
|
39
40
|
"react-native": ">=0.74.0",
|
|
40
|
-
"react-native-safe-area-context": ">=4.0.0"
|
|
41
|
-
"@umituz/react-native-storage": "latest"
|
|
41
|
+
"react-native-safe-area-context": ">=4.0.0"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
44
|
"@react-native-async-storage/async-storage": "^2.1.0",
|
|
45
45
|
"@react-native-community/datetimepicker": "^8.2.0",
|
|
46
|
+
"@types/react": "~19.1.0",
|
|
46
47
|
"@umituz/react-native-design-system": "latest",
|
|
47
48
|
"@umituz/react-native-haptics": "latest",
|
|
48
49
|
"@umituz/react-native-storage": "latest",
|
|
@@ -50,7 +51,7 @@
|
|
|
50
51
|
"expo-haptics": "~14.0.0",
|
|
51
52
|
"expo-linear-gradient": "~14.0.0",
|
|
52
53
|
"expo-notifications": "~0.27.6",
|
|
53
|
-
"
|
|
54
|
+
"firebase": "^12.7.0",
|
|
54
55
|
"typescript": "~5.9.2"
|
|
55
56
|
},
|
|
56
57
|
"publishConfig": {
|
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
6
|
import React, { useEffect, useMemo, useCallback } from 'react';
|
|
7
|
-
import { View, FlatList, StyleSheet,
|
|
8
|
-
import { AtomicText, AtomicIcon } from '@umituz/react-native-design-system';
|
|
7
|
+
import { View, FlatList, StyleSheet, TouchableOpacity } from 'react-native';
|
|
8
|
+
import { AtomicText, AtomicIcon, AtomicSpinner } from '@umituz/react-native-design-system';
|
|
9
9
|
import { useAppDesignTokens } from '@umituz/react-native-design-system';
|
|
10
10
|
import { ReminderItem } from '../components/ReminderItem';
|
|
11
11
|
import { useRemindersStore, useReminders, useRemindersLoading } from '../../infrastructure/storage/RemindersStore';
|
|
@@ -77,7 +77,7 @@ export const ReminderListScreen: React.FC<ReminderListScreenProps> = ({
|
|
|
77
77
|
if (isLoading) {
|
|
78
78
|
return (
|
|
79
79
|
<View style={[styles.loadingContainer, { backgroundColor: tokens.colors.surface }]}>
|
|
80
|
-
<
|
|
80
|
+
<AtomicSpinner size="lg" color="primary" fullContainer />
|
|
81
81
|
</View>
|
|
82
82
|
);
|
|
83
83
|
}
|
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
6
|
import React, { useMemo, useState } from 'react';
|
|
7
|
-
import { View, StyleSheet,
|
|
8
|
-
import { AtomicText, AtomicIcon, AtomicCard, ScreenLayout } from '@umituz/react-native-design-system';
|
|
7
|
+
import { View, StyleSheet, TouchableOpacity } from 'react-native';
|
|
8
|
+
import { AtomicText, AtomicIcon, AtomicCard, ScreenLayout, AtomicSpinner } from '@umituz/react-native-design-system';
|
|
9
9
|
import { useAppDesignTokens } from '@umituz/react-native-design-system';
|
|
10
10
|
import { QuietHoursCard } from '../../domains/quietHours/presentation/components/QuietHoursCard';
|
|
11
11
|
import { SettingRow } from '../components/SettingRow';
|
|
@@ -84,9 +84,7 @@ export const NotificationSettingsScreen: React.FC<NotificationSettingsScreenProp
|
|
|
84
84
|
if (isLoading) {
|
|
85
85
|
return (
|
|
86
86
|
<ScreenLayout>
|
|
87
|
-
<
|
|
88
|
-
<ActivityIndicator size="large" color={tokens.colors.primary} />
|
|
89
|
-
</View>
|
|
87
|
+
<AtomicSpinner size="lg" color="primary" fullContainer />
|
|
90
88
|
</ScreenLayout>
|
|
91
89
|
);
|
|
92
90
|
}
|
|
@@ -6,8 +6,8 @@
|
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
8
|
import React, { useMemo } from 'react';
|
|
9
|
-
import { View, StyleSheet
|
|
10
|
-
import { AtomicIcon, AtomicCard, AtomicText, ScreenLayout, STATIC_TOKENS } from '@umituz/react-native-design-system';
|
|
9
|
+
import { View, StyleSheet } from 'react-native';
|
|
10
|
+
import { AtomicIcon, AtomicCard, AtomicText, ScreenLayout, STATIC_TOKENS, AtomicSpinner } from '@umituz/react-native-design-system';
|
|
11
11
|
import { Switch } from 'react-native';
|
|
12
12
|
import { useAppDesignTokens } from '@umituz/react-native-design-system';
|
|
13
13
|
import { useNotificationSettings } from '../../infrastructure/hooks/useNotificationSettings';
|
|
@@ -37,15 +37,12 @@ export const NotificationsScreen: React.FC<NotificationsScreenProps> = ({
|
|
|
37
37
|
if (isLoading) {
|
|
38
38
|
return (
|
|
39
39
|
<ScreenLayout testID={testID}>
|
|
40
|
-
<
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
{translations.loadingText || 'Loading...'}
|
|
47
|
-
</AtomicText>
|
|
48
|
-
</View>
|
|
40
|
+
<AtomicSpinner
|
|
41
|
+
size="lg"
|
|
42
|
+
color="primary"
|
|
43
|
+
text={translations.loadingText || 'Loading...'}
|
|
44
|
+
fullContainer
|
|
45
|
+
/>
|
|
49
46
|
</ScreenLayout>
|
|
50
47
|
);
|
|
51
48
|
}
|