@umituz/react-native-settings 4.20.59 → 4.20.60
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.20.
|
|
3
|
+
"version": "4.20.60",
|
|
4
4
|
"description": "Complete settings hub for React Native apps - consolidated package with settings, about, legal, appearance, feedback, FAQs, and rating",
|
|
5
5
|
"main": "./src/index.ts",
|
|
6
6
|
"types": "./src/index.ts",
|
|
@@ -44,6 +44,7 @@ export const SettingsStackNavigator: React.FC<SettingsStackNavigatorProps> = ({
|
|
|
44
44
|
additionalScreens = [],
|
|
45
45
|
devSettings,
|
|
46
46
|
customSections = [],
|
|
47
|
+
showHeader = true,
|
|
47
48
|
}) => {
|
|
48
49
|
const tokens = useAppDesignTokens();
|
|
49
50
|
const { t } = useLocalization();
|
|
@@ -72,6 +73,7 @@ export const SettingsStackNavigator: React.FC<SettingsStackNavigatorProps> = ({
|
|
|
72
73
|
userProfile={userProfile}
|
|
73
74
|
devSettings={devSettings}
|
|
74
75
|
customSections={customSections}
|
|
76
|
+
showHeader={showHeader}
|
|
75
77
|
/>
|
|
76
78
|
)}
|
|
77
79
|
</Stack.Screen>
|
|
@@ -11,6 +11,7 @@ export interface SettingsScreenWrapperProps {
|
|
|
11
11
|
userProfile: any;
|
|
12
12
|
devSettings: any;
|
|
13
13
|
customSections: any[];
|
|
14
|
+
showHeader?: boolean;
|
|
14
15
|
}
|
|
15
16
|
|
|
16
17
|
export const SettingsScreenWrapper: React.FC<SettingsScreenWrapperProps> = ({
|
|
@@ -20,6 +21,7 @@ export const SettingsScreenWrapper: React.FC<SettingsScreenWrapperProps> = ({
|
|
|
20
21
|
userProfile,
|
|
21
22
|
devSettings,
|
|
22
23
|
customSections,
|
|
24
|
+
showHeader,
|
|
23
25
|
}) => (
|
|
24
26
|
<SettingsScreen
|
|
25
27
|
config={config}
|
|
@@ -28,5 +30,6 @@ export const SettingsScreenWrapper: React.FC<SettingsScreenWrapperProps> = ({
|
|
|
28
30
|
userProfile={userProfile}
|
|
29
31
|
devSettings={devSettings}
|
|
30
32
|
customSections={customSections}
|
|
33
|
+
showHeader={showHeader}
|
|
31
34
|
/>
|
|
32
35
|
);
|
|
@@ -50,7 +50,8 @@ export interface SettingsScreenProps {
|
|
|
50
50
|
notificationServiceAvailable?: boolean;
|
|
51
51
|
};
|
|
52
52
|
/** Dev settings (only shown in __DEV__ mode) */
|
|
53
|
-
|
|
53
|
+
/** Show header (default: true) */
|
|
54
|
+
showHeader?: boolean;
|
|
54
55
|
}
|
|
55
56
|
|
|
56
57
|
export const SettingsScreen: React.FC<SettingsScreenProps> = ({
|
|
@@ -62,6 +63,7 @@ export const SettingsScreen: React.FC<SettingsScreenProps> = ({
|
|
|
62
63
|
appVersion,
|
|
63
64
|
customSections = [],
|
|
64
65
|
showCloseButton = false,
|
|
66
|
+
showHeader = true,
|
|
65
67
|
onClose,
|
|
66
68
|
featureOptions,
|
|
67
69
|
devSettings,
|
|
@@ -77,7 +79,7 @@ export const SettingsScreen: React.FC<SettingsScreenProps> = ({
|
|
|
77
79
|
|
|
78
80
|
return (
|
|
79
81
|
<ScreenLayout
|
|
80
|
-
header={<SettingsHeader showCloseButton={showCloseButton} onClose={onClose} />}
|
|
82
|
+
header={showHeader ? <SettingsHeader showCloseButton={showCloseButton} onClose={onClose} /> : undefined}
|
|
81
83
|
>
|
|
82
84
|
<SettingsErrorBoundary>
|
|
83
85
|
<SettingsContent
|