@namiml/expo-sdk 3.4.4-dev.202607010315 → 3.4.4-dev.202607011943
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/dist/index.cjs
CHANGED
|
@@ -3033,6 +3033,12 @@ const NamiBackgroundContainer = ({ component, scaleFactor, onClose }) => {
|
|
|
3033
3033
|
const containerStyle = require$$0.useMemo(() => applyStyles(component, scaleFactor), [component, scaleFactor]);
|
|
3034
3034
|
const fillImageUrl = resolveFillImageUrl(component.fillImage);
|
|
3035
3035
|
const bgColor = parseColor(component.fillColor) ?? parseColor(component.fillColorFallback);
|
|
3036
|
+
// Only clip when the container is a filled "tile" with specific (non-all-corners)
|
|
3037
|
+
// rounding (NAM-1798); all-corners / unrounded filled containers stay unclipped so
|
|
3038
|
+
// NC-3948 / NAM-1201 over-rounding is not reintroduced. Matches the Apple/Web gate.
|
|
3039
|
+
const roundBorders = component.roundBorders;
|
|
3040
|
+
const hasSpecificCorners = Array.isArray(roundBorders) && roundBorders.length > 0 && roundBorders.length < 4;
|
|
3041
|
+
const clipStyle = (component.fillColor || component.fillImage) && hasSpecificCorners ? { overflow: 'hidden' } : {};
|
|
3036
3042
|
const direction = component.direction ?? 'vertical';
|
|
3037
3043
|
const content = (jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment, { children: component.components?.map((comp, i) => {
|
|
3038
3044
|
const marginKey = direction === 'vertical' ? 'topMargin' : 'leftMargin';
|
|
@@ -3045,9 +3051,9 @@ const NamiBackgroundContainer = ({ component, scaleFactor, onClose }) => {
|
|
|
3045
3051
|
return (jsxRuntimeExports.jsx(TemplateRenderer, { component: spacedComponent, scaleFactor: scaleFactor, onClose: onClose, parentDirection: direction }, comp.id ?? i));
|
|
3046
3052
|
}) }));
|
|
3047
3053
|
if (fillImageUrl) {
|
|
3048
|
-
return (jsxRuntimeExports.jsx(reactNative.ImageBackground, { source: { uri: fillImageUrl }, resizeMode: 'cover', style: [containerStyle, styles$4.background], children: content }));
|
|
3054
|
+
return (jsxRuntimeExports.jsx(reactNative.ImageBackground, { source: { uri: fillImageUrl }, resizeMode: 'cover', style: [containerStyle, styles$4.background, clipStyle], children: content }));
|
|
3049
3055
|
}
|
|
3050
|
-
return (jsxRuntimeExports.jsx(reactNative.View, { style: [containerStyle, bgColor ? { backgroundColor: bgColor } : null, styles$4.background], children: content }));
|
|
3056
|
+
return (jsxRuntimeExports.jsx(reactNative.View, { style: [containerStyle, bgColor ? { backgroundColor: bgColor } : null, styles$4.background, clipStyle], children: content }));
|
|
3051
3057
|
};
|
|
3052
3058
|
function mergeRawMarginValue(existing, spacing) {
|
|
3053
3059
|
if (existing == null)
|