decord/source/design/components/Stack/native/Stack.native.tsx

54 lines
1.5 KiB
TypeScript
Raw Normal View History

// Module ID: 5024
// Function ID: 5025
// Name: Stack/Stack
// Dependencies: [19, 17, 21, 4606, 2]
2026-07-20 16:05:17 +00:00
// Exports: Stack
// Module 5024 (Stack/Stack)
import noop from "module_19" /* 19 */;
2026-07-23 10:11:24 +00:00
const View = fn(17).View;
const jsx = fn(21).jsx;
const createStyles = fn(4606);
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";
}
stack.flexDirection = str;
2026-07-29 08:29:29 +00:00
return { stack };
2026-07-20 16:05:17 +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 };
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
};