@umituz/react-native-notifications 1.5.16 → 1.5.18

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.16",
3
+ "version": "1.5.18",
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",
@@ -10,11 +10,14 @@ import { AtomicText, AtomicIcon } from '@umituz/react-native-design-system';
10
10
  import { useAppDesignTokens } from '@umituz/react-native-design-system';
11
11
  // @ts-ignore - Optional peer dependency
12
12
  import { useNavigation } from '@react-navigation/native';
13
+ // @ts-ignore - Optional peer dependency
14
+ import { useLocalization } from '@umituz/react-native-localization';
13
15
 
14
16
  export interface NotificationsSectionConfig {
15
17
  route?: string;
16
18
  title?: string;
17
19
  description?: string;
20
+ sectionTitle?: string;
18
21
  }
19
22
 
20
23
  export interface NotificationsSectionProps {
@@ -27,6 +30,7 @@ export const NotificationsSection: React.FC<NotificationsSectionProps> = ({
27
30
  containerStyle,
28
31
  }) => {
29
32
  const navigation = useNavigation();
33
+ const { t } = useLocalization();
30
34
  const tokens = useAppDesignTokens();
31
35
  const styles = useMemo(() => createStyles(tokens), [tokens]);
32
36
 
@@ -35,12 +39,13 @@ export const NotificationsSection: React.FC<NotificationsSectionProps> = ({
35
39
  navigation.navigate(route as never);
36
40
  }, [config?.route, navigation]);
37
41
 
38
- const title = config?.title || 'Notifications';
39
- const description = config?.description || 'Manage notification preferences';
42
+ const title = config?.title || t('notifications.title');
43
+ const description = config?.description || t('notifications.description');
44
+ const sectionTitle = config?.sectionTitle || t('notifications.sectionTitle');
40
45
 
41
46
  return (
42
47
  <View style={[styles.container, containerStyle]}>
43
- <AtomicText type="bodyLarge" style={styles.sectionTitle}>General</AtomicText>
48
+ <AtomicText type="bodyLarge" style={styles.sectionTitle}>{sectionTitle}</AtomicText>
44
49
 
45
50
  <TouchableOpacity
46
51
  style={styles.itemContainer}