@umituz/react-native-settings 4.23.46 → 4.23.48

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,11 +1,11 @@
1
1
  {
2
2
  "name": "@umituz/react-native-settings",
3
- "version": "4.23.46",
3
+ "version": "4.23.48",
4
4
  "description": "Complete settings hub for React Native apps - consolidated package with settings, localization, about, legal, appearance, feedback, FAQs, rating, and gamification",
5
5
  "main": "./src/index.ts",
6
6
  "types": "./src/index.ts",
7
7
  "scripts": {
8
- "typecheck": "tsc --noEmit",
8
+ "typecheck": "tsc --noEmit --skipLibCheck",
9
9
  "lint": "eslint src",
10
10
  "lint:fix": "eslint src --fix",
11
11
  "vp": "npm version patch && npm publish && git push"
@@ -42,13 +42,13 @@
42
42
  "firebase": "^12.7.0"
43
43
  },
44
44
  "peerDependencies": {
45
- "@umituz/react-native-design-system": ">=4.23.45",
46
45
  "@expo/vector-icons": ">=14.0.0",
47
46
  "@react-native-async-storage/async-storage": ">=2.0.0",
48
47
  "@react-native-community/datetimepicker": ">=8.0.0",
49
48
  "@react-navigation/native": ">=6.0.0",
50
49
  "@react-navigation/stack": ">=6.0.0",
51
50
  "@tanstack/react-query": ">=5.0.0",
51
+ "@umituz/react-native-design-system": ">=4.23.47",
52
52
  "expo-device": ">=6.0.0",
53
53
  "expo-haptics": ">=15.0.0",
54
54
  "expo-localization": ">=16.0.0",
@@ -62,7 +62,6 @@
62
62
  "zustand": ">=4.0.0"
63
63
  },
64
64
  "devDependencies": {
65
- "@umituz/react-native-design-system": "^4.23.45",
66
65
  "@expo/vector-icons": "^15.0.0",
67
66
  "@gorhom/bottom-sheet": "^5.2.8",
68
67
  "@react-native-async-storage/async-storage": "^2.2.0",
@@ -78,6 +77,7 @@
78
77
  "@typescript-eslint/eslint-plugin": "^7.18.0",
79
78
  "@typescript-eslint/parser": "^7.18.0",
80
79
  "@umituz/react-native-auth": "^3.6.49",
80
+ "@umituz/react-native-design-system": "^4.23.47",
81
81
  "@umituz/react-native-firebase": "^1.13.102",
82
82
  "@umituz/react-native-sentry": "*",
83
83
  "eslint": "^8.57.0",
@@ -1,22 +1,21 @@
1
- import { useTheme, useDesignSystemTheme, type ThemeMode, type CustomThemeColors } from "@umituz/react-native-design-system";
1
+ import { useTheme, type ThemeMode, type CustomThemeColors } from "@umituz/react-native-design-system";
2
2
 
3
3
  export const useAppearance = () => {
4
- const { themeMode, isInitialized, setThemeMode: setThemeModeAction } = useTheme();
5
- const { customColors, setCustomColors: setCustomColorsAction } = useDesignSystemTheme();
4
+ const { themeMode, customColors, isInitialized, setThemeMode, setCustomColors } = useTheme();
6
5
 
7
6
  return {
8
7
  themeMode,
9
8
  customColors,
10
9
  isLoading: !isInitialized,
11
10
  setThemeMode: (mode: ThemeMode) => {
12
- void setThemeModeAction(mode);
11
+ void setThemeMode(mode);
13
12
  },
14
13
  setCustomColors: (colors: CustomThemeColors) => {
15
- setCustomColorsAction(colors);
14
+ void setCustomColors(colors);
16
15
  },
17
16
  reset: () => {
18
- void setThemeModeAction("light");
19
- setCustomColorsAction(undefined);
17
+ void setThemeMode("light");
18
+ void setCustomColors(undefined);
20
19
  },
21
20
  };
22
21
  };