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

58 lines
1.5 KiB
TypeScript
Raw Normal View History

2026-07-25 08:10:48 +00:00
// Module ID: 4542
2026-07-27 11:26:19 +00:00
// Function ID: 39854
2026-07-20 16:05:17 +00:00
// Name: Stack
2026-07-25 08:10:48 +00:00
// Dependencies: [31, 27, 33, 4131, 2]
2026-07-20 16:05:17 +00:00
// Exports: Stack
2026-07-25 08:10:48 +00:00
// Module 4542 (Stack)
2026-07-23 10:11:24 +00:00
import "result";
import { View } from "get ActivityIndicator";
import { jsx } from "jsxProd";
import _createForOfIteratorHelperLoose from "_createForOfIteratorHelperLoose";
let closure_2 = _createForOfIteratorHelperLoose.createStyles((gap, arg1, alignItems, justifyContent) => {
2026-07-20 16:05:17 +00:00
let obj = {};
obj = { width: "100%", gap, alignItems, justifyContent };
let str = "column";
if ("horizontal" === arg1) {
str = "row";
}
obj.flexDirection = str;
obj.stack = obj;
return obj;
});
2026-07-23 10:11:24 +00:00
const result = require("jsxProd").fileFinishedImporting("design/components/Stack/native/Stack.native.tsx");
2026-07-20 16:05:17 +00:00
export const Stack = function Stack(spacing) {
let children;
let onLayout;
let style;
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 = {};
const items = [callback(num, str, str2, str3).stack, style];
obj.style = items;
obj.onLayout = onLayout;
obj.children = children;
2026-07-23 10:11:24 +00:00
return <View />;
2026-07-20 16:05:17 +00:00
};