@umituz/react-native-settings 4.16.20 → 4.16.21
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
|
@@ -4,7 +4,6 @@
|
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
6
|
import React, { useCallback } from "react";
|
|
7
|
-
import { Feather } from "@expo/vector-icons";
|
|
8
7
|
import { SettingItem } from "./SettingItem";
|
|
9
8
|
import type { SettingItemProps } from "./SettingItem";
|
|
10
9
|
|
|
@@ -46,7 +45,7 @@ export const CloudSyncSetting: React.FC<CloudSyncSettingProps> = ({
|
|
|
46
45
|
|
|
47
46
|
return (
|
|
48
47
|
<SettingItem
|
|
49
|
-
icon=
|
|
48
|
+
icon="cloud-outline"
|
|
50
49
|
title={title || "cloud_sync"}
|
|
51
50
|
value={displayDescription}
|
|
52
51
|
onPress={onPress}
|
|
@@ -9,17 +9,11 @@
|
|
|
9
9
|
|
|
10
10
|
import React from "react";
|
|
11
11
|
import { Alert } from "react-native";
|
|
12
|
-
import { Feather } from "@expo/vector-icons";
|
|
13
12
|
import { useAppDesignTokens } from "@umituz/react-native-design-system";
|
|
14
13
|
import { storageRepository } from "@umituz/react-native-storage";
|
|
15
14
|
import { SettingsSection } from "./SettingsSection";
|
|
16
15
|
import { SettingItem } from "./SettingItem";
|
|
17
16
|
|
|
18
|
-
// Icon wrapper for SettingItem compatibility
|
|
19
|
-
const TrashIcon: React.FC<{ size?: number; color?: string }> = ({ size = 24, color }) => (
|
|
20
|
-
<Feather name="trash-2" size={size} color={color} />
|
|
21
|
-
);
|
|
22
|
-
|
|
23
17
|
// Default texts (English only - DEV feature)
|
|
24
18
|
const DEFAULT_TEXTS = {
|
|
25
19
|
sectionTitle: "Developer",
|
|
@@ -107,7 +101,7 @@ export const DevSettingsSection: React.FC<DevSettingsProps> = ({
|
|
|
107
101
|
<SettingsSection title={t.sectionTitle}>
|
|
108
102
|
{customDevComponents.map((component) => component)}
|
|
109
103
|
<SettingItem
|
|
110
|
-
icon=
|
|
104
|
+
icon="trash-outline"
|
|
111
105
|
title={t.clearTitle}
|
|
112
106
|
value={t.clearDescription}
|
|
113
107
|
onPress={handleClearData}
|
|
@@ -5,7 +5,6 @@
|
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
7
|
import React from "react";
|
|
8
|
-
import { Feather } from "@expo/vector-icons";
|
|
9
8
|
import { SettingItem } from "./SettingItem";
|
|
10
9
|
|
|
11
10
|
export interface StorageClearSettingProps {
|
|
@@ -37,7 +36,7 @@ export const StorageClearSetting: React.FC<StorageClearSettingProps> = ({
|
|
|
37
36
|
|
|
38
37
|
return (
|
|
39
38
|
<SettingItem
|
|
40
|
-
icon=
|
|
39
|
+
icon="trash-outline"
|
|
41
40
|
title={defaultTitle}
|
|
42
41
|
value={defaultDescription}
|
|
43
42
|
onPress={onPress}
|