@umituz/react-native-settings 4.20.31 → 4.20.32
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.32",
|
|
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",
|
|
@@ -153,14 +153,24 @@ export const SettingsStackNavigator: React.FC<SettingsStackNavigatorProps> = ({
|
|
|
153
153
|
</Stack.Screen>
|
|
154
154
|
)}
|
|
155
155
|
|
|
156
|
-
{additionalScreens.map((screen) =>
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
156
|
+
{additionalScreens.map((screen) =>
|
|
157
|
+
screen.children ? (
|
|
158
|
+
<Stack.Screen
|
|
159
|
+
key={screen.name}
|
|
160
|
+
name={screen.name as keyof SettingsStackParamList}
|
|
161
|
+
options={screen.options}
|
|
162
|
+
>
|
|
163
|
+
{screen.children}
|
|
164
|
+
</Stack.Screen>
|
|
165
|
+
) : screen.component ? (
|
|
166
|
+
<Stack.Screen
|
|
167
|
+
key={screen.name}
|
|
168
|
+
name={screen.name as keyof SettingsStackParamList}
|
|
169
|
+
component={screen.component}
|
|
170
|
+
options={screen.options}
|
|
171
|
+
/>
|
|
172
|
+
) : null
|
|
173
|
+
)}
|
|
164
174
|
</Stack.Navigator>
|
|
165
175
|
);
|
|
166
176
|
};
|
|
@@ -61,8 +61,9 @@ export interface UserProfileConfig {
|
|
|
61
61
|
*/
|
|
62
62
|
export interface AdditionalScreen {
|
|
63
63
|
name: string;
|
|
64
|
-
component
|
|
65
|
-
|
|
64
|
+
component?: React.ComponentType<unknown>;
|
|
65
|
+
children?: () => React.ReactElement;
|
|
66
|
+
options?: Record<string, unknown>;
|
|
66
67
|
}
|
|
67
68
|
|
|
68
69
|
/**
|