decord/source/design/components/Stack/native/Stack.native.tsx
github-actions ecf26fc058 chore: update source for alpha 347.2
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4823.js (118.4 MB)
2026-09-16 07:03:15 +00:00

53 lines
1.5 KiB
TypeScript

// Module ID: 5058
// Function ID: 5059
// Name: Stack/Stack
// Dependencies: [19, 17, 21, 4638, 2]
// Exports: Stack
// Module 5058 (Stack/Stack)
import noop from "module_19" /* 19 */;
const View = fn(17).View;
const jsx = fn(21).jsx;
const createStyles = fn(4638);
let closure_2 = createStyles.createStyles((gap, arg1, alignItems, justifyContent) => {
const stack = { width: "100%", gap, alignItems, justifyContent, flexDirection: null };
let str = "column";
if ("horizontal" === arg1) {
str = "row";
}
stack.flexDirection = str;
return { stack };
});
const size = fn(2);
const result = size.fileFinishedImporting("design/components/Stack/native/Stack.native.tsx");
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);
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;
return <View style={null} onLayout={null}>{null}</View>;
};