@umituz/react-native-settings 4.23.51 → 4.23.53
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.
|
|
3
|
+
"version": "4.23.53",
|
|
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",
|
|
@@ -38,6 +38,8 @@ export const SettingsStackNavigator: React.FC<SettingsStackNavigatorProps> = ({
|
|
|
38
38
|
devSettings,
|
|
39
39
|
customSections = [],
|
|
40
40
|
showHeader = true,
|
|
41
|
+
showCloseButton = false,
|
|
42
|
+
onClose,
|
|
41
43
|
gamificationConfig,
|
|
42
44
|
}) => {
|
|
43
45
|
const tokens = useAppDesignTokens();
|
|
@@ -75,7 +77,7 @@ export const SettingsStackNavigator: React.FC<SettingsStackNavigatorProps> = ({
|
|
|
75
77
|
const list: StackScreen<any>[] = [
|
|
76
78
|
{
|
|
77
79
|
name: "SettingsMain",
|
|
78
|
-
options:
|
|
80
|
+
options: { headerShown: false },
|
|
79
81
|
children: () => (
|
|
80
82
|
<SettingsScreenWrapper
|
|
81
83
|
config={config}
|
|
@@ -85,6 +87,8 @@ export const SettingsStackNavigator: React.FC<SettingsStackNavigatorProps> = ({
|
|
|
85
87
|
devSettings={devSettings}
|
|
86
88
|
customSections={customSections}
|
|
87
89
|
showHeader={showHeader}
|
|
90
|
+
showCloseButton={showCloseButton}
|
|
91
|
+
onClose={onClose}
|
|
88
92
|
/>
|
|
89
93
|
),
|
|
90
94
|
},
|
|
@@ -172,6 +176,8 @@ export const SettingsStackNavigator: React.FC<SettingsStackNavigatorProps> = ({
|
|
|
172
176
|
}, [
|
|
173
177
|
t,
|
|
174
178
|
showHeader,
|
|
179
|
+
showCloseButton,
|
|
180
|
+
onClose,
|
|
175
181
|
config,
|
|
176
182
|
appInfo.version,
|
|
177
183
|
showUserProfile,
|
|
@@ -12,6 +12,8 @@ export interface SettingsScreenWrapperProps {
|
|
|
12
12
|
devSettings: any;
|
|
13
13
|
customSections: any[];
|
|
14
14
|
showHeader?: boolean;
|
|
15
|
+
showCloseButton?: boolean;
|
|
16
|
+
onClose?: () => void;
|
|
15
17
|
}
|
|
16
18
|
|
|
17
19
|
export const SettingsScreenWrapper: React.FC<SettingsScreenWrapperProps> = ({
|
|
@@ -22,6 +24,8 @@ export const SettingsScreenWrapper: React.FC<SettingsScreenWrapperProps> = ({
|
|
|
22
24
|
devSettings,
|
|
23
25
|
customSections,
|
|
24
26
|
showHeader,
|
|
27
|
+
showCloseButton,
|
|
28
|
+
onClose,
|
|
25
29
|
}) => (
|
|
26
30
|
<SettingsScreen
|
|
27
31
|
config={config}
|
|
@@ -31,5 +35,7 @@ export const SettingsScreenWrapper: React.FC<SettingsScreenWrapperProps> = ({
|
|
|
31
35
|
devSettings={devSettings}
|
|
32
36
|
customSections={customSections}
|
|
33
37
|
showHeader={showHeader}
|
|
38
|
+
showCloseButton={showCloseButton}
|
|
39
|
+
onClose={onClose}
|
|
34
40
|
/>
|
|
35
41
|
);
|
|
@@ -99,5 +99,9 @@ export interface SettingsStackNavigatorProps {
|
|
|
99
99
|
devSettings?: DevSettingsProps;
|
|
100
100
|
customSections?: CustomSettingsSection[];
|
|
101
101
|
showHeader?: boolean;
|
|
102
|
+
/** Show close button in header (useful for modal presentation) */
|
|
103
|
+
showCloseButton?: boolean;
|
|
104
|
+
/** Custom close handler */
|
|
105
|
+
onClose?: () => void;
|
|
102
106
|
gamificationConfig?: import("../../domains/gamification").GamificationSettingsConfig;
|
|
103
107
|
}
|