@umituz/react-native-settings 5.2.6 → 5.2.8

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": "5.2.6",
3
+ "version": "5.2.8",
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",
@@ -39,6 +39,7 @@ export interface UseSettingsScreenConfigParams {
39
39
  additionalScreens?: AdditionalScreen[];
40
40
  features?: SettingsFeatures;
41
41
  translations?: SettingsTranslations;
42
+ onClose?: () => void;
42
43
  }
43
44
 
44
45
  export interface SettingsScreenConfigResult {
@@ -53,7 +54,7 @@ export interface SettingsScreenConfigResult {
53
54
  export const useSettingsScreenConfig = (
54
55
  params: UseSettingsScreenConfigParams
55
56
  ): SettingsScreenConfigResult => {
56
- const { appInfo, faqData, isPremium, onFeedbackSubmit, features = {}, translations } = params;
57
+ const { appInfo, faqData, isPremium, onFeedbackSubmit, features = {}, translations, onClose } = params;
57
58
 
58
59
  const {
59
60
  notifications: showNotifications = true,
@@ -74,7 +75,7 @@ export const useSettingsScreenConfig = (
74
75
 
75
76
  // Use centralized auth handlers
76
77
  const { handleRatePress, handleSignOut, handleDeleteAccount, handleSignIn } =
77
- useAuthHandlers(appInfo, translations?.errors);
78
+ useAuthHandlers(appInfo, translations?.errors, { onClose });
78
79
 
79
80
  // Use settings config factory
80
81
  const baseSettingsConfig = useSettingsConfigFactory({
@@ -2,7 +2,7 @@ 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";
5
- import { AccountScreen, PasswordPromptScreen } from "@umituz/react-native-auth";
5
+ import { AccountScreen } from "@umituz/react-native-auth";
6
6
  import { SettingsScreen } from "../../screens/SettingsScreen";
7
7
  import { AppearanceScreen } from "../../screens/AppearanceScreen";
8
8
  import { FAQScreen } from "../../../domains/faqs";
@@ -128,12 +128,6 @@ export const useSettingsScreens = (props: UseSettingsScreensProps): StackScreen[
128
128
  title: videoTutorialConfig?.title || translations?.videoTutorial?.title || "",
129
129
  });
130
130
 
131
- const passwordPromptScreen: StackScreen = {
132
- name: "PasswordPrompt",
133
- component: PasswordPromptScreen as any,
134
- options: { headerShown: false },
135
- };
136
-
137
131
  return combineScreens(
138
132
  baseScreens,
139
133
  faqScreen,
@@ -141,8 +135,7 @@ export const useSettingsScreens = (props: UseSettingsScreensProps): StackScreen[
141
135
  gamificationScreen,
142
136
  languageScreen,
143
137
  accountScreen,
144
- videoTutorialScreen,
145
- passwordPromptScreen
138
+ videoTutorialScreen
146
139
  );
147
140
  }, [
148
141
  translations,