@umituz/react-native-localization 3.7.3 → 3.7.4
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
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
SearchBar,
|
|
12
12
|
ScreenLayout,
|
|
13
13
|
NavigationHeader,
|
|
14
|
-
|
|
14
|
+
useAppNavigation,
|
|
15
15
|
} from '@umituz/react-native-design-system';
|
|
16
16
|
import { useLanguageSelection } from '../../infrastructure/hooks/useLanguageSelection';
|
|
17
17
|
import { LanguageItem } from '../components/LanguageItem';
|
|
@@ -29,6 +29,7 @@ export const LanguageSelectionScreen: React.FC<LanguageSelectionScreenProps> = (
|
|
|
29
29
|
testID = 'language-selection-screen',
|
|
30
30
|
}) => {
|
|
31
31
|
const tokens = useAppDesignTokens();
|
|
32
|
+
const navigation = useAppNavigation();
|
|
32
33
|
const {
|
|
33
34
|
searchQuery,
|
|
34
35
|
setSearchQuery,
|
|
@@ -40,8 +41,8 @@ export const LanguageSelectionScreen: React.FC<LanguageSelectionScreenProps> = (
|
|
|
40
41
|
const onSelect = async (code: string) => {
|
|
41
42
|
console.log('[LanguageSelectionScreen] onSelect called with code:', code);
|
|
42
43
|
await handleLanguageSelect(code, () => {
|
|
43
|
-
console.log('[LanguageSelectionScreen] Navigating back');
|
|
44
|
-
|
|
44
|
+
console.log('[LanguageSelectionScreen] Navigating back using context navigation');
|
|
45
|
+
navigation.goBack();
|
|
45
46
|
});
|
|
46
47
|
console.log('[LanguageSelectionScreen] Language change completed');
|
|
47
48
|
};
|
|
@@ -86,7 +87,7 @@ export const LanguageSelectionScreen: React.FC<LanguageSelectionScreenProps> = (
|
|
|
86
87
|
if (onBackPress) {
|
|
87
88
|
onBackPress();
|
|
88
89
|
} else {
|
|
89
|
-
|
|
90
|
+
navigation.goBack();
|
|
90
91
|
}
|
|
91
92
|
};
|
|
92
93
|
|