@umituz/react-native-settings 1.8.0 → 1.8.2

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": "1.8.0",
3
+ "version": "1.8.2",
4
4
  "description": "Settings management for React Native apps - user preferences, theme, language, notifications",
5
5
  "main": "./src/index.ts",
6
6
  "types": "./src/index.ts",
@@ -30,6 +30,8 @@ export interface SettingItemProps {
30
30
  iconColor?: string;
31
31
  /** Custom title color */
32
32
  titleColor?: string;
33
+ /** Test ID for E2E testing */
34
+ testID?: string;
33
35
  }
34
36
 
35
37
  export const SettingItem: React.FC<SettingItemProps> = ({
@@ -43,6 +45,7 @@ export const SettingItem: React.FC<SettingItemProps> = ({
43
45
  isLast = false,
44
46
  iconColor,
45
47
  titleColor,
48
+ testID,
46
49
  }) => {
47
50
  const tokens = useAppDesignTokens();
48
51
  const colors = tokens.colors;
@@ -57,6 +60,7 @@ export const SettingItem: React.FC<SettingItemProps> = ({
57
60
  onPress={onPress}
58
61
  disabled={showSwitch}
59
62
  activeOpacity={0.7}
63
+ testID={testID}
60
64
  >
61
65
  <View style={styles.content}>
62
66
  <View
@@ -115,7 +115,7 @@ export const SettingsScreen: React.FC<SettingsScreenProps> = ({
115
115
 
116
116
  {customSections && customSections.length > 0 && (
117
117
  <>
118
- {customSections
118
+ {Array.from(customSections)
119
119
  .sort((a, b) => (a.order ?? 999) - (b.order ?? 999))
120
120
  .map((section, index) => (
121
121
  <SettingsSection