@umituz/react-native-settings 4.15.0 → 4.16.1

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": "4.15.0",
3
+ "version": "4.16.1",
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",
@@ -91,4 +91,4 @@
91
91
  "README.md",
92
92
  "LICENSE"
93
93
  ]
94
- }
94
+ }
package/src/index.ts CHANGED
@@ -82,3 +82,4 @@ export type { StorageClearSettingProps } from './presentation/components/Storage
82
82
 
83
83
  export { DevSettingsSection } from './presentation/components/DevSettingsSection';
84
84
  export type { DevSettingsProps } from './presentation/components/DevSettingsSection';
85
+
@@ -42,12 +42,15 @@ export interface DevSettingsProps {
42
42
  onAfterClear?: () => Promise<void>;
43
43
  /** Custom texts (optional - defaults to English) */
44
44
  texts?: Partial<typeof DEFAULT_TEXTS>;
45
+ /** Custom dev components to render before the clear data button */
46
+ customDevComponents?: React.ReactNode[];
45
47
  }
46
48
 
47
49
  export const DevSettingsSection: React.FC<DevSettingsProps> = ({
48
50
  enabled = true,
49
51
  onAfterClear,
50
52
  texts = {},
53
+ customDevComponents = [],
51
54
  }) => {
52
55
  const tokens = useAppDesignTokens();
53
56
 
@@ -102,6 +105,7 @@ export const DevSettingsSection: React.FC<DevSettingsProps> = ({
102
105
 
103
106
  return (
104
107
  <SettingsSection title={t.sectionTitle}>
108
+ {customDevComponents.map((component) => component)}
105
109
  <SettingItem
106
110
  icon={TrashIcon}
107
111
  title={t.clearTitle}