@umituz/react-native-settings 5.3.65 → 5.3.67

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.65",
3
+ "version": "5.3.67",
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",
@@ -9,7 +9,6 @@ import React, { useMemo } from 'react';
9
9
  import {
10
10
  View,
11
11
  TouchableOpacity,
12
- Platform,
13
12
  type StyleProp,
14
13
  type ViewStyle,
15
14
  type TextStyle,
@@ -55,7 +54,7 @@ export const LanguageItem: React.FC<LanguageItemProps> = ({
55
54
  borderWidth: 1.5,
56
55
  } as ViewStyle,
57
56
  nativeName: {
58
- color: "#FFFFFF",
57
+ color: tokens.colors.textPrimary,
59
58
  marginBottom: 2,
60
59
  } as TextStyle,
61
60
  languageName: {
@@ -78,27 +77,19 @@ export const LanguageItem: React.FC<LanguageItemProps> = ({
78
77
  activeOpacity={0.7}
79
78
  >
80
79
  <View style={[styles.languageContent, customStyles?.languageContent]}>
81
- <AtomicText style={[styles.flag, { fontSize: 28 }, customStyles?.flag]}>
80
+ <AtomicText style={[styles.flag, { fontSize: 28, fontFamily: undefined }, customStyles?.flag]}>
82
81
  {item.flag || '🌐'}
83
82
  </AtomicText>
84
83
  <View style={[styles.languageText, { gap: 4 }, customStyles?.languageText]}>
85
84
  <AtomicText
86
- style={[
87
- themedStyles.nativeName,
88
- {
89
- fontWeight: '700',
90
- fontSize: 17,
91
- color: '#FFFFFF',
92
- fontFamily: Platform.OS === 'ios' ? 'System' : 'sans-serif'
93
- },
94
- customStyles?.nativeName
95
- ]}
85
+ type="bodyLarge"
86
+ style={[themedStyles.nativeName, { fontWeight: '700' }, customStyles?.nativeName]}
96
87
  >
97
88
  {item.nativeName}
98
89
  </AtomicText>
99
90
  <AtomicText
100
91
  type="labelMedium"
101
- style={[themedStyles.languageName, { fontSize: 13, color: '#E8B4B8', opacity: 0.8 }, customStyles?.nativeName]}
92
+ style={[themedStyles.languageName, customStyles?.nativeName]}
102
93
  >
103
94
  {item.name}
104
95
  </AtomicText>
@@ -71,14 +71,14 @@ const LanguageSearchComponent: React.FC<LanguageSearchComponentProps> = ({
71
71
  }
72
72
 
73
73
  return (
74
- <View style={{ paddingHorizontal: 20 }}>
74
+ <View style={{ paddingHorizontal: tokens.spacing.lg }}>
75
75
  <SearchBar
76
76
  value={searchQuery}
77
77
  onChangeText={setSearchQuery}
78
78
  placeholder={searchPlaceholder}
79
79
  containerStyle={[
80
80
  {
81
- marginBottom: 20,
81
+ marginBottom: tokens.spacing.md,
82
82
  backgroundColor: 'transparent',
83
83
  borderBottomWidth: 0,
84
84
  paddingHorizontal: 0,
@@ -87,13 +87,13 @@ const LanguageSearchComponent: React.FC<LanguageSearchComponentProps> = ({
87
87
  ]}
88
88
  inputStyle={[
89
89
  {
90
- backgroundColor: '#2D1518',
91
- borderRadius: 24,
92
- color: '#FFFFFF',
93
- paddingHorizontal: 16,
90
+ backgroundColor: tokens.colors.surface,
91
+ borderRadius: tokens.borders.radius.full,
92
+ color: tokens.colors.textPrimary,
93
+ paddingHorizontal: tokens.spacing.md,
94
94
  height: 52,
95
95
  borderWidth: 1,
96
- borderColor: '#3D2022',
96
+ borderColor: tokens.colors.border,
97
97
  },
98
98
  customStyles?.searchInput
99
99
  ]}