@umituz/react-native-localization 3.5.58 → 3.5.59

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-localization",
3
- "version": "3.5.58",
3
+ "version": "3.5.59",
4
4
  "description": "Generic localization system for React Native apps with i18n support",
5
5
  "main": "./src/index.ts",
6
6
  "types": "./src/index.ts",
@@ -1,11 +1,11 @@
1
1
  // @ts-ignore - Optional peer dependency
2
- import { useNavigation } from '@react-navigation/native';
2
+ import { useAppNavigation } from '@umituz/react-native-design-system';
3
3
  import { useLocalization } from '../hooks/useLocalization';
4
4
  import { languageRepository } from '../repository/LanguageRepository';
5
5
 
6
6
 
7
7
  export const useLanguageNavigation = (navigationScreen: string) => {
8
- const navigation = useNavigation();
8
+ const navigation = useAppNavigation();
9
9
  const { currentLanguage } = useLocalization();
10
10
  const currentLang = languageRepository.getLanguageByCode(currentLanguage) || languageRepository.getDefaultLanguage();
11
11
 
@@ -1,12 +1,11 @@
1
1
  import React from 'react';
2
2
  import { View, StyleSheet, type ViewStyle } from 'react-native';
3
3
  // @ts-ignore - Optional peer dependency
4
- import { useNavigation } from '@react-navigation/native';
5
- // @ts-ignore - Optional peer dependency
6
4
  import {
7
5
  useAppDesignTokens,
8
6
  AtomicText,
9
- ListItem
7
+ ListItem,
8
+ useAppNavigation,
10
9
  } from '@umituz/react-native-design-system';
11
10
  import { useLocalization } from '../../infrastructure/hooks/useLocalization';
12
11
  import { getLanguageByCode } from '../../infrastructure/config/languages';
@@ -29,7 +28,7 @@ export const LanguageSection: React.FC<LanguageSectionProps> = ({
29
28
  containerStyle,
30
29
  sectionTitle,
31
30
  }) => {
32
- const navigation = useNavigation();
31
+ const navigation = useAppNavigation();
33
32
  const tokens = useAppDesignTokens();
34
33
  const { t, currentLanguage } = useLocalization();
35
34
 
@@ -6,13 +6,12 @@
6
6
  import React from 'react';
7
7
  import { FlatList } from 'react-native';
8
8
  // @ts-ignore - Optional peer dependency
9
- import { useNavigation } from '@react-navigation/native';
10
- // @ts-ignore - Optional peer dependency
11
9
  import {
12
10
  useAppDesignTokens,
13
11
  SearchBar,
14
12
  ScreenLayout,
15
- NavigationHeader
13
+ NavigationHeader,
14
+ useAppNavigation,
16
15
  } from '@umituz/react-native-design-system';
17
16
  import { useLanguageSelection } from '../../infrastructure/hooks/useLanguageSelection';
18
17
  import { LanguageItem } from '../components/LanguageItem';
@@ -50,7 +49,7 @@ export const LanguageSelectionScreen: React.FC<LanguageSelectionScreenProps> = (
50
49
  searchPlaceholder = "settings.languageSelection.searchPlaceholder",
51
50
  testID = 'language-selection-screen',
52
51
  }) => {
53
- const navigation = useNavigation();
52
+ const navigation = useAppNavigation();
54
53
  const tokens = useAppDesignTokens();
55
54
  const {
56
55
  searchQuery,