@umituz/react-native-settings 5.2.7 → 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.
|
|
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({
|