@umituz/react-native-design-system 4.25.82 → 4.25.83
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-design-system",
|
|
3
|
-
"version": "4.25.
|
|
3
|
+
"version": "4.25.83",
|
|
4
4
|
"description": "Universal design system for React Native apps - Consolidated package with atoms, molecules, organisms, theme, typography, responsive, safe area, exception, infinite scroll, UUID, image, timezone, offline, onboarding, and loading utilities",
|
|
5
5
|
"main": "./src/index.ts",
|
|
6
6
|
"types": "./src/index.ts",
|
|
@@ -37,6 +37,7 @@ export const ScreenLayout: React.FC<ScreenLayoutProps> = (props: ScreenLayoutPro
|
|
|
37
37
|
keyboardAvoiding = false,
|
|
38
38
|
keyboardVerticalOffset = 0,
|
|
39
39
|
maxWidth,
|
|
40
|
+
fullWidth = false,
|
|
40
41
|
refreshControl,
|
|
41
42
|
} = props;
|
|
42
43
|
|
|
@@ -45,7 +46,8 @@ export const ScreenLayout: React.FC<ScreenLayoutProps> = (props: ScreenLayoutPro
|
|
|
45
46
|
|
|
46
47
|
const layoutConfig = useMemo(() => getScreenLayoutConfig(insets), [insets]);
|
|
47
48
|
|
|
48
|
-
|
|
49
|
+
// fullWidth=true disables maxWidth (useful for paginated FlatLists and full-bleed layouts)
|
|
50
|
+
const finalMaxWidth = fullWidth ? undefined : (maxWidth || layoutConfig.maxContentWidth);
|
|
49
51
|
const horizontalPadding = layoutConfig.horizontalPadding;
|
|
50
52
|
const verticalPadding = layoutConfig.verticalPadding;
|
|
51
53
|
|
|
@@ -23,5 +23,7 @@ export interface ScreenLayoutProps {
|
|
|
23
23
|
readonly accessibilityHint?: string;
|
|
24
24
|
readonly accessible?: boolean;
|
|
25
25
|
readonly maxWidth?: number;
|
|
26
|
+
/** Disable maxWidth constraint (useful for full-bleed layouts like paginated FlatLists) */
|
|
27
|
+
readonly fullWidth?: boolean;
|
|
26
28
|
readonly refreshControl?: React.ReactElement<RefreshControlProps>;
|
|
27
29
|
}
|