@umituz/react-native-settings 5.1.0 → 5.1.2

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.1.0",
3
+ "version": "5.1.2",
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,7 +74,7 @@
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": "^4.1.0",
77
+ "@umituz/react-native-auth": "^4.1.1",
78
78
  "@umituz/react-native-design-system": "latest",
79
79
  "@umituz/react-native-firebase": "latest",
80
80
  "@umituz/react-native-sentry": "latest",
@@ -164,7 +164,8 @@ export const useSettingsScreenConfig = (
164
164
  onLogout: handleSignOut,
165
165
  onDeleteAccount: handleDeleteAccount,
166
166
  translations: translations?.account as any,
167
- }), [user, userProfileData, handleSignIn, handleSignOut, handleDeleteAccount, translations]);
167
+ PasswordPromptComponent,
168
+ }), [user, userProfileData, handleSignIn, handleSignOut, handleDeleteAccount, translations, PasswordPromptComponent]);
168
169
 
169
170
  // Use centralized FAQ translation
170
171
  const translatedFaqData = useMemo(() =>
@@ -29,6 +29,7 @@ export interface CreateAccountConfigParams {
29
29
  onLogout: () => Promise<void>;
30
30
  onDeleteAccount: () => Promise<void>;
31
31
  translations?: AccountTranslations;
32
+ PasswordPromptComponent?: React.ReactNode;
32
33
  }
33
34
 
34
35
  /**
@@ -45,6 +46,7 @@ export function createAccountConfig(params: CreateAccountConfigParams): AccountS
45
46
  onLogout,
46
47
  onDeleteAccount,
47
48
  translations,
49
+ PasswordPromptComponent,
48
50
  } = params;
49
51
 
50
52
  const anonymous = isAnonymous ?? true;
@@ -74,6 +76,7 @@ export function createAccountConfig(params: CreateAccountConfigParams): AccountS
74
76
  isAnonymous: anonymous,
75
77
  editProfileText: translations?.editProfile || "",
76
78
  onSignIn,
79
+ PasswordPromptComponent,
77
80
  accountActions: hasValidAccountTranslations ? {
78
81
  onLogout,
79
82
  onDeleteAccount,