@umituz/react-native-settings 4.17.14 → 4.17.15
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 +6 -3
- package/src/presentation/components/DevSettingsSection.tsx +2 -2
- package/src/presentation/components/SettingItem.tsx +2 -2
- package/src/presentation/components/SettingsErrorBoundary.tsx +2 -2
- package/src/presentation/components/SettingsFooter.tsx +2 -2
- package/src/presentation/components/SettingsSection.tsx +2 -2
- package/src/presentation/navigation/SettingsStackNavigator.tsx +2 -2
- package/src/presentation/screens/SettingsScreen.tsx +2 -2
- package/src/presentation/screens/components/SettingsContent.tsx +2 -2
- package/src/presentation/screens/components/SettingsHeader.tsx +2 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@umituz/react-native-settings",
|
|
3
|
-
"version": "4.17.
|
|
3
|
+
"version": "4.17.15",
|
|
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",
|
|
@@ -76,5 +76,8 @@
|
|
|
76
76
|
"src",
|
|
77
77
|
"README.md",
|
|
78
78
|
"LICENSE"
|
|
79
|
-
]
|
|
80
|
-
|
|
79
|
+
],
|
|
80
|
+
"dependencies": {
|
|
81
|
+
"@umituz/react-native-design-system": "^2.2.0"
|
|
82
|
+
}
|
|
83
|
+
}
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
|
|
10
10
|
import React from "react";
|
|
11
11
|
import { Alert } from "react-native";
|
|
12
|
-
import {
|
|
12
|
+
import { useResponsiveDesignTokens } from "@umituz/react-native-design-system";
|
|
13
13
|
import { storageRepository } from "@umituz/react-native-storage";
|
|
14
14
|
import { SettingsSection } from "./SettingsSection";
|
|
15
15
|
import { SettingItem } from "./SettingItem";
|
|
@@ -46,7 +46,7 @@ export const DevSettingsSection: React.FC<DevSettingsProps> = ({
|
|
|
46
46
|
texts = {},
|
|
47
47
|
customDevComponents = [],
|
|
48
48
|
}) => {
|
|
49
|
-
const tokens =
|
|
49
|
+
const tokens = useResponsiveDesignTokens();
|
|
50
50
|
|
|
51
51
|
// Merge custom texts with defaults
|
|
52
52
|
const t = { ...DEFAULT_TEXTS, ...texts };
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
import React from "react";
|
|
8
8
|
import { View, Text, Pressable, StyleSheet, Switch } from "react-native";
|
|
9
|
-
import { AtomicIcon,
|
|
9
|
+
import { AtomicIcon, useResponsiveDesignTokens } from "@umituz/react-native-design-system";
|
|
10
10
|
|
|
11
11
|
export interface SettingItemProps {
|
|
12
12
|
/** Icon name (Ionicons) */
|
|
@@ -58,7 +58,7 @@ export const SettingItem: React.FC<SettingItemProps> = ({
|
|
|
58
58
|
switchThumbColor,
|
|
59
59
|
switchTrackColors,
|
|
60
60
|
}) => {
|
|
61
|
-
const tokens =
|
|
61
|
+
const tokens = useResponsiveDesignTokens();
|
|
62
62
|
const colors = tokens.colors;
|
|
63
63
|
|
|
64
64
|
return (
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
import React, { Component, ReactNode } from 'react';
|
|
7
7
|
import { View, StyleSheet } from 'react-native';
|
|
8
|
-
import {
|
|
8
|
+
import { useResponsiveDesignTokens } from '@umituz/react-native-design-system';
|
|
9
9
|
import { AtomicText, AtomicIcon } from '@umituz/react-native-design-system';
|
|
10
10
|
import { useLocalization } from '@umituz/react-native-localization';
|
|
11
11
|
|
|
@@ -67,7 +67,7 @@ const ErrorBoundaryFallback: React.FC<ErrorBoundaryFallbackProps> = ({
|
|
|
67
67
|
fallbackTitle,
|
|
68
68
|
fallbackMessage
|
|
69
69
|
}) => {
|
|
70
|
-
const tokens =
|
|
70
|
+
const tokens = useResponsiveDesignTokens();
|
|
71
71
|
const { t } = useLocalization();
|
|
72
72
|
|
|
73
73
|
const title = __DEV__ && error?.message
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
import React from "react";
|
|
7
7
|
import { View, Text, StyleSheet } from "react-native";
|
|
8
|
-
import {
|
|
8
|
+
import { useResponsiveDesignTokens } from "@umituz/react-native-design-system";
|
|
9
9
|
|
|
10
10
|
export interface SettingsFooterProps {
|
|
11
11
|
/** Custom version text (optional) - should include version number from app config */
|
|
@@ -21,7 +21,7 @@ export const SettingsFooter: React.FC<SettingsFooterProps> = ({
|
|
|
21
21
|
appVersion,
|
|
22
22
|
versionLabel = "Version",
|
|
23
23
|
}) => {
|
|
24
|
-
const tokens =
|
|
24
|
+
const tokens = useResponsiveDesignTokens();
|
|
25
25
|
const colors = tokens.colors;
|
|
26
26
|
|
|
27
27
|
// If versionText is provided, use it directly
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
import React from "react";
|
|
7
7
|
import { View, Text, StyleSheet } from "react-native";
|
|
8
|
-
import {
|
|
8
|
+
import { useResponsiveDesignTokens } from "@umituz/react-native-design-system";
|
|
9
9
|
|
|
10
10
|
export interface SettingsSectionProps {
|
|
11
11
|
/** Section title */
|
|
@@ -18,7 +18,7 @@ export const SettingsSection: React.FC<SettingsSectionProps> = ({
|
|
|
18
18
|
title,
|
|
19
19
|
children,
|
|
20
20
|
}) => {
|
|
21
|
-
const tokens =
|
|
21
|
+
const tokens = useResponsiveDesignTokens();
|
|
22
22
|
const colors = tokens.colors;
|
|
23
23
|
|
|
24
24
|
return (
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
|
|
8
8
|
import React from "react";
|
|
9
9
|
import { createStackNavigator } from "@react-navigation/stack";
|
|
10
|
-
import {
|
|
10
|
+
import { useResponsiveDesignTokens } from "@umituz/react-native-design-system";
|
|
11
11
|
import { SettingsScreen } from "../screens/SettingsScreen";
|
|
12
12
|
import { AppearanceScreen } from "../screens/AppearanceScreen";
|
|
13
13
|
import type { SettingsConfig } from "../screens/types";
|
|
@@ -76,7 +76,7 @@ export const SettingsStackNavigator: React.FC<SettingsStackNavigatorProps> = ({
|
|
|
76
76
|
additionalScreens = [],
|
|
77
77
|
devSettings,
|
|
78
78
|
}) => {
|
|
79
|
-
const tokens =
|
|
79
|
+
const tokens = useResponsiveDesignTokens();
|
|
80
80
|
|
|
81
81
|
const screenOptions = {
|
|
82
82
|
headerStyle: {
|
|
@@ -8,7 +8,7 @@ import { View, StatusBar, StyleSheet } from "react-native";
|
|
|
8
8
|
import { useNavigation } from "@react-navigation/native";
|
|
9
9
|
import {
|
|
10
10
|
useDesignSystemTheme,
|
|
11
|
-
|
|
11
|
+
useResponsiveDesignTokens,
|
|
12
12
|
} from "@umituz/react-native-design-system";
|
|
13
13
|
import { SettingsHeader } from "./components/SettingsHeader";
|
|
14
14
|
import { SettingsContent } from "./components/SettingsContent";
|
|
@@ -68,7 +68,7 @@ export const SettingsScreen: React.FC<SettingsScreenProps> = ({
|
|
|
68
68
|
}) => {
|
|
69
69
|
const navigation = useNavigation();
|
|
70
70
|
const { themeMode } = useDesignSystemTheme();
|
|
71
|
-
const tokens =
|
|
71
|
+
const tokens = useResponsiveDesignTokens();
|
|
72
72
|
|
|
73
73
|
const isDark = themeMode === "dark";
|
|
74
74
|
const colors = tokens.colors;
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
import React, { useMemo } from "react";
|
|
7
7
|
import { View, ScrollView, StyleSheet } from "react-native";
|
|
8
8
|
import { useSafeAreaInsets } from "react-native-safe-area-context";
|
|
9
|
-
import {
|
|
9
|
+
import { useResponsiveDesignTokens } from "@umituz/react-native-design-system";
|
|
10
10
|
import { useLocalization } from "@umituz/react-native-localization";
|
|
11
11
|
import { SettingsFooter } from "../../components/SettingsFooter";
|
|
12
12
|
import { ProfileSection } from "@umituz/react-native-auth";
|
|
@@ -107,7 +107,7 @@ export const SettingsContent: React.FC<SettingsContentProps> = ({
|
|
|
107
107
|
showCloseButton = false,
|
|
108
108
|
devSettings,
|
|
109
109
|
}) => {
|
|
110
|
-
const tokens =
|
|
110
|
+
const tokens = useResponsiveDesignTokens();
|
|
111
111
|
const insets = useSafeAreaInsets();
|
|
112
112
|
const { t } = useLocalization();
|
|
113
113
|
|
|
@@ -7,7 +7,7 @@ import React from "react";
|
|
|
7
7
|
import { View, TouchableOpacity, StyleSheet } from "react-native";
|
|
8
8
|
import { useSafeAreaInsets } from "react-native-safe-area-context";
|
|
9
9
|
import { useNavigation } from "@react-navigation/native";
|
|
10
|
-
import {
|
|
10
|
+
import { useResponsiveDesignTokens } from "@umituz/react-native-design-system";
|
|
11
11
|
import { AtomicIcon } from "@umituz/react-native-design-system";
|
|
12
12
|
|
|
13
13
|
interface SettingsHeaderProps {
|
|
@@ -20,7 +20,7 @@ export const SettingsHeader: React.FC<SettingsHeaderProps> = ({
|
|
|
20
20
|
onClose,
|
|
21
21
|
}) => {
|
|
22
22
|
const navigation = useNavigation();
|
|
23
|
-
const tokens =
|
|
23
|
+
const tokens = useResponsiveDesignTokens();
|
|
24
24
|
const insets = useSafeAreaInsets();
|
|
25
25
|
|
|
26
26
|
const handleClose = () => {
|