@umituz/react-native-settings 4.23.85 → 4.23.86

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.23.85",
3
+ "version": "4.23.86",
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",
@@ -74,8 +74,8 @@
74
74
  "@types/react": "~19.1.10",
75
75
  "@typescript-eslint/eslint-plugin": "^7.18.0",
76
76
  "@typescript-eslint/parser": "^7.18.0",
77
- "@umituz/react-native-auth": "^3.6.49",
78
- "@umituz/react-native-design-system": "*",
77
+ "@umituz/react-native-auth": "^3.6.76",
78
+ "@umituz/react-native-design-system": "latest",
79
79
  "@umituz/react-native-firebase": "^1.13.102",
80
80
  "@umituz/react-native-sentry": "*",
81
81
  "eslint": "^8.57.0",
@@ -122,7 +122,7 @@ export const useAboutInfo = (
122
122
  setAppInfo(defaultAppInfo);
123
123
  isInitializedRef.current = true;
124
124
  }
125
- }).catch((error) => {
125
+ }).catch((_error) => {
126
126
  });
127
127
  }
128
128
  }, [initialConfig, autoInit]);
@@ -6,7 +6,7 @@
6
6
 
7
7
  import React, { useMemo } from 'react';
8
8
  import { View, ScrollView, StyleSheet, ViewStyle, TextStyle, useWindowDimensions } from 'react-native';
9
- import { useAppDesignTokens, AtomicText, ScreenLayout, getContentMaxWidth, NavigationHeader, useAppNavigation } from '@umituz/react-native-design-system';
9
+ import { useAppDesignTokens, ScreenLayout, getContentMaxWidth, NavigationHeader, useAppNavigation } from '@umituz/react-native-design-system';
10
10
  import { FAQCategory } from '../../domain/entities/FAQEntity';
11
11
  import { useFAQSearch } from '../hooks/useFAQSearch';
12
12
  import { useFAQExpansion } from '../hooks/useFAQExpansion';
@@ -1,7 +1,7 @@
1
1
  import { StyleSheet } from "react-native";
2
2
  import type { useAppDesignTokens } from "@umituz/react-native-design-system";
3
3
 
4
- export const getFeedbackFormStyles = (tokens: ReturnType<typeof useAppDesignTokens>) =>
4
+ export const getFeedbackFormStyles = (_tokens: ReturnType<typeof useAppDesignTokens>) =>
5
5
  StyleSheet.create({
6
6
  container: {
7
7
  width: "100%",
@@ -4,7 +4,7 @@
4
4
  */
5
5
 
6
6
  import React, { useState } from "react";
7
- import { View, StyleSheet, TouchableOpacity, ScrollView, TextInput } from "react-native";
7
+ import { View, TouchableOpacity, ScrollView, TextInput } from "react-native";
8
8
  import { useAppDesignTokens, AtomicText, AtomicButton, AtomicIcon } from "@umituz/react-native-design-system";
9
9
  import type { FeedbackType, FeedbackRating } from "../../domain/entities/FeedbackEntity";
10
10
 
@@ -5,7 +5,7 @@
5
5
  */
6
6
 
7
7
  import React from "react";
8
- import { View, ScrollView } from "react-native";
8
+ import { View } from "react-native";
9
9
  import { useAppDesignTokens, AtomicText, ScreenLayout, NavigationHeader, useAppNavigation } from "@umituz/react-native-design-system";
10
10
  import { LevelProgress } from "../LevelProgress";
11
11
  import { StreakDisplay } from "../StreakDisplay";
@@ -27,12 +27,8 @@ export const GamificationScreenInner: React.FC<GamificationScreenProps> = ({
27
27
  achievements,
28
28
  streakProps,
29
29
  emptyAchievementsText,
30
- containerStyle,
31
- headerStyle,
32
- titleStyle,
33
30
  sectionTitleStyle,
34
31
  accentColor,
35
- backgroundColor,
36
32
  cardBackgroundColor,
37
33
  textColor,
38
34
  subtextColor,
@@ -43,7 +39,6 @@ export const GamificationScreenInner: React.FC<GamificationScreenProps> = ({
43
39
 
44
40
  // Use tokens for fallbacks
45
41
  const finalAccentColor = accentColor || tokens.colors.primary;
46
- const finalBackgroundColor = backgroundColor || tokens.colors.backgroundPrimary;
47
42
  const finalCardBackgroundColor = cardBackgroundColor || tokens.colors.surface;
48
43
  const finalTextColor = textColor || tokens.colors.textPrimary;
49
44
  const finalSubtextColor = subtextColor || tokens.colors.textSecondary;
@@ -6,17 +6,17 @@ export const isDev = () => {
6
6
  }
7
7
  };
8
8
 
9
- export const devLog = (message: string, ...args: unknown[]) => {
9
+ export const devLog = (_message: string, ..._args: unknown[]) => {
10
10
  if (isDev()) {
11
11
  }
12
12
  };
13
13
 
14
- export const devError = (message: string, ...args: unknown[]) => {
14
+ export const devError = (_message: string, ..._args: unknown[]) => {
15
15
  if (isDev()) {
16
16
  }
17
17
  };
18
18
 
19
- export const devWarn = (message: string, ...args: unknown[]) => {
19
+ export const devWarn = (_message: string, ..._args: unknown[]) => {
20
20
  if (isDev()) {
21
21
  }
22
22
  };
@@ -1,4 +1,4 @@
1
- import type { Reminder, ReminderFrequency, CreateReminderInput, TimePreset } from '../../../infrastructure/services/types';
1
+ import type { Reminder, CreateReminderInput, TimePreset } from '../../../infrastructure/services/types';
2
2
 
3
3
  export const DEFAULT_HOUR = 9;
4
4
  export const DEFAULT_MINUTE = 0;
@@ -4,7 +4,7 @@
4
4
  */
5
5
 
6
6
  import React, { useState, useMemo, useCallback } from 'react';
7
- import { View, TextInput, StyleSheet, ScrollView } from 'react-native';
7
+ import { View, TextInput, ScrollView } from 'react-native';
8
8
  import { AtomicText } from '@umituz/react-native-design-system';
9
9
  import { useAppDesignTokens } from '@umituz/react-native-design-system';
10
10
  import { TimePresetSelector } from './TimePresetSelector';
@@ -5,8 +5,6 @@
5
5
  * These functions follow best practices for shallow comparison in React components.
6
6
  */
7
7
 
8
- import type { ComponentType } from "react";
9
-
10
8
  /**
11
9
  * Standard comparison for components with config and translation props
12
10
  * @param prevProps Previous props
@@ -7,20 +7,10 @@
7
7
 
8
8
  import React from "react";
9
9
  import {
10
- useAppDesignTokens,
11
10
  StackNavigator,
12
- type StackScreen,
13
11
  type StackNavigatorConfig,
14
12
  } from "@umituz/react-native-design-system";
15
- import { useLocalization, LanguageSelectionScreen } from "../../domains/localization";
16
- import { NotificationSettingsScreen } from "../../domains/notifications";
17
- import { AccountScreen } from "@umituz/react-native-auth";
18
- import { SettingsScreen } from "../screens/SettingsScreen";
19
- import { AppearanceScreen } from "../screens/AppearanceScreen";
20
- import { FAQScreen } from "../../domains/faqs";
21
- import { AboutScreen } from "../../domains/about";
22
- import { LegalScreen } from "../../domains/legal";
23
- import { GamificationScreen } from "../../domains/gamification";
13
+ import { useLocalization } from "../../domains/localization";
24
14
  import { useNavigationHandlers, useSettingsScreens } from "./hooks";
25
15
  import {
26
16
  createNotificationTranslations,
@@ -33,20 +23,7 @@ export const SettingsStackNavigator: React.FC<SettingsStackNavigatorProps> = (pr
33
23
  const {
34
24
  appInfo,
35
25
  legalUrls,
36
- faqData,
37
- config = {},
38
- showUserProfile = false,
39
- userProfile,
40
- accountConfig,
41
- additionalScreens = [],
42
- devSettings,
43
- customSections = [],
44
- showHeader = true,
45
- showCloseButton = false,
46
- onClose,
47
- gamificationConfig,
48
26
  } = props;
49
- const tokens = useAppDesignTokens();
50
27
  const { t } = useLocalization();
51
28
  const { handlePrivacyPress, handleTermsPress, handleEulaPress, aboutConfig } =
52
29
  useNavigationHandlers(appInfo, legalUrls);
@@ -1,4 +1,4 @@
1
- import React, { useMemo } from 'react';
1
+ import { useMemo } from 'react';
2
2
  import type { StackScreen } from "@umituz/react-native-design-system";
3
3
  import { LanguageSelectionScreen } from "../../../domains/localization";
4
4
  import { NotificationSettingsScreen } from "../../../domains/notifications";
@@ -36,7 +36,7 @@ export function createStackScreen(
36
36
  /**
37
37
  * Create a screen with props
38
38
  */
39
- export function createScreenWithProps<P extends Record<string, unknown>>(
39
+ export function createScreenWithProps<P>(
40
40
  name: string,
41
41
  component: React.ComponentType<P>,
42
42
  props: P,