@umituz/react-native-settings 5.3.77 → 5.3.78
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-settings",
|
|
3
|
-
"version": "5.3.
|
|
3
|
+
"version": "5.3.78",
|
|
4
4
|
"description": "Complete settings hub for React Native apps - consolidated package with settings, localization, about, legal, appearance, feedback, FAQs, rating, and gamification - expo-store-review and expo-device now lazy loaded",
|
|
5
5
|
"main": "./src/index.ts",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -16,6 +16,7 @@ import {
|
|
|
16
16
|
import { AtomicText, AtomicIcon } from '@umituz/react-native-design-system/atoms';
|
|
17
17
|
import { useAppDesignTokens } from '@umituz/react-native-design-system/theme';
|
|
18
18
|
import type { Language } from '../../infrastructure/storage/types/Language';
|
|
19
|
+
import { ICON_PATHS } from '../../../../utils/iconPaths';
|
|
19
20
|
import { styles } from './LanguageItem.styles';
|
|
20
21
|
|
|
21
22
|
interface LanguageItemProps {
|
|
@@ -90,15 +91,23 @@ export const LanguageItem: React.FC<LanguageItemProps> = ({
|
|
|
90
91
|
>
|
|
91
92
|
<View style={[styles.languageContent, customStyles?.languageContent]}>
|
|
92
93
|
<View style={themedStyles.flagContainer}>
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
94
|
+
{item.flag && item.flag !== '🌐' ? (
|
|
95
|
+
<AtomicText
|
|
96
|
+
style={[
|
|
97
|
+
styles.flag,
|
|
98
|
+
{ fontSize: 24, marginRight: 0, fontFamily: undefined },
|
|
99
|
+
customStyles?.flag
|
|
100
|
+
]}
|
|
101
|
+
>
|
|
102
|
+
{item.flag}
|
|
103
|
+
</AtomicText>
|
|
104
|
+
) : (
|
|
105
|
+
<AtomicIcon
|
|
106
|
+
svgPath={ICON_PATHS['globe']}
|
|
107
|
+
customSize={24}
|
|
108
|
+
customColor={tokens.colors.primary}
|
|
109
|
+
/>
|
|
110
|
+
)}
|
|
102
111
|
</View>
|
|
103
112
|
<View style={[styles.languageText, customStyles?.languageText]}>
|
|
104
113
|
<AtomicText
|
|
@@ -116,11 +125,13 @@ export const LanguageItem: React.FC<LanguageItemProps> = ({
|
|
|
116
125
|
</View>
|
|
117
126
|
</View>
|
|
118
127
|
{isSelected && (
|
|
119
|
-
<
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
128
|
+
<View style={themedStyles.flagContainer}>
|
|
129
|
+
<AtomicIcon
|
|
130
|
+
svgPath={CHECKMARK_PATH}
|
|
131
|
+
customSize={24}
|
|
132
|
+
customColor={tokens.colors.primary}
|
|
133
|
+
/>
|
|
134
|
+
</View>
|
|
124
135
|
)}
|
|
125
136
|
</TouchableOpacity>
|
|
126
137
|
);
|