2026-09-12 13:45:10 +00:00
|
|
|
// Module ID: 5054
|
|
|
|
|
// Function ID: 5055
|
2026-09-10 05:38:07 +00:00
|
|
|
// Name: Stack/Stack
|
2026-09-12 13:45:10 +00:00
|
|
|
// Dependencies: [19, 17, 21, 4636, 2]
|
2026-07-20 16:05:17 +00:00
|
|
|
// Exports: Stack
|
|
|
|
|
|
2026-09-12 13:45:10 +00:00
|
|
|
// Module 5054 (Stack/Stack)
|
2026-09-10 05:38:07 +00:00
|
|
|
import noop from "module_19" /* 19 */;
|
2026-07-23 10:11:24 +00:00
|
|
|
|
2026-09-10 05:38:07 +00:00
|
|
|
const View = fn(17).View;
|
|
|
|
|
const jsx = fn(21).jsx;
|
2026-09-12 13:45:10 +00:00
|
|
|
const createStyles = fn(4636);
|
2026-09-10 05:38:07 +00:00
|
|
|
let closure_2 = createStyles.createStyles((gap, arg1, alignItems, justifyContent) => {
|
2026-07-29 08:29:29 +00:00
|
|
|
const stack = { width: "100%", gap, alignItems, justifyContent, flexDirection: null };
|
2026-07-20 16:05:17 +00:00
|
|
|
let str = "column";
|
|
|
|
|
if ("horizontal" === arg1) {
|
|
|
|
|
str = "row";
|
|
|
|
|
}
|
2026-09-10 05:38:07 +00:00
|
|
|
stack.flexDirection = str;
|
2026-07-29 08:29:29 +00:00
|
|
|
return { stack };
|
2026-07-20 16:05:17 +00:00
|
|
|
});
|
2026-09-10 05:38:07 +00:00
|
|
|
const size = fn(2);
|
|
|
|
|
const result = size.fileFinishedImporting("design/components/Stack/native/Stack.native.tsx");
|
2026-07-20 16:05:17 +00:00
|
|
|
|
|
|
|
|
export const Stack = function Stack(spacing) {
|
|
|
|
|
spacing = spacing.spacing;
|
|
|
|
|
let num = 8;
|
|
|
|
|
if (undefined !== spacing) {
|
|
|
|
|
num = spacing;
|
|
|
|
|
}
|
|
|
|
|
const direction = spacing.direction;
|
|
|
|
|
let str = "vertical";
|
|
|
|
|
if (undefined !== direction) {
|
|
|
|
|
str = direction;
|
|
|
|
|
}
|
|
|
|
|
const align = spacing.align;
|
|
|
|
|
let str2 = "stretch";
|
|
|
|
|
if (undefined !== align) {
|
|
|
|
|
str2 = align;
|
|
|
|
|
}
|
|
|
|
|
const justify = spacing.justify;
|
|
|
|
|
let str3 = "flex-start";
|
|
|
|
|
if (undefined !== justify) {
|
|
|
|
|
str3 = justify;
|
|
|
|
|
}
|
|
|
|
|
({ children, style, onLayout } = spacing);
|
2026-07-29 08:29:29 +00:00
|
|
|
const obj = { style: null, onLayout: null, children: null };
|
2026-09-10 05:38:07 +00:00
|
|
|
const items = [closure_2(num, str, str2, str3).stack, style];
|
|
|
|
|
obj.style = items;
|
|
|
|
|
obj.onLayout = onLayout;
|
|
|
|
|
obj.children = children;
|
2026-07-29 08:29:29 +00:00
|
|
|
return <View style={null} onLayout={null}>{null}</View>;
|
2026-07-20 16:05:17 +00:00
|
|
|
};
|